diff --git a/ipaserver/custodia/message/formats.py b/ipaserver/custodia/message/formats.py index caa287286..7c5a2ddbd 100644 --- a/ipaserver/custodia/message/formats.py +++ b/ipaserver/custodia/message/formats.py @@ -52,7 +52,7 @@ class Validator: else: msg_value = msg['value'] - if msg_type not in list(self.types.keys()): + if msg_type not in self.types: raise UnknownMessageType("Type '%s' is unknown" % msg_type) if msg_type not in self.allowed: