diff options
Diffstat (limited to 'custodia/message/formats.py')
-rw-r--r-- | custodia/message/formats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custodia/message/formats.py b/custodia/message/formats.py index 00845a3..8093ba7 100644 --- a/custodia/message/formats.py +++ b/custodia/message/formats.py @@ -27,7 +27,7 @@ class Validator(object): def add_types(self, types): self.types.update(types) - def parse(self, request, msg): + def parse(self, request, msg, name): if not isinstance(msg, dict): raise InvalidMessage('The message must be a dict') @@ -59,5 +59,5 @@ class Validator(object): msg_type,)) handler = self.types[msg_type](request) - handler.parse(msg_value) + handler.parse(msg_value, name) return handler |