From fdd3dd29b7897d39d44e61e4a3f372d21896cac9 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Mon, 21 Nov 2022 18:31:24 +0100 Subject: [PATCH] pylint: fix consider-iterating-dictionary Related: https://pagure.io/freeipa/issue/9278 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Stanislav Levin --- ipaserver/custodia/message/formats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: