Merge "Fix tests on Python3.10"
This commit is contained in:
commit
d7368446e4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user