Merge "Fix tests on Python3.10"

This commit is contained in:
Zuul 2022-01-27 16:14:08 +00:00 committed by Gerrit Code Review
commit d7368446e4

View File

@ -134,7 +134,10 @@ class PropertyRules(object):
compiled_rule = self._compile_rule(property_exp)
for operation in operations:
permissions = CONFIG.get(property_exp, operation)
try:
permissions = CONFIG.get(property_exp, operation)
except configparser.NoOptionError:
raise InvalidPropProtectConf()
if permissions:
if self.prop_prot_rule_format == 'policies':
if ',' in permissions: