pylint: fix consider-iterating-dictionary

Related: https://pagure.io/freeipa/issue/9278

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
Florence Blanc-Renaud committed 2023-01-10 08:30:58 +01:00
1 parent 8fad897ee7
commit fdd3dd29b7
1 file changed
+1 -1
+1 -1
View File
@@ -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: