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)
|
compiled_rule = self._compile_rule(property_exp)
|
||||||
|
|
||||||
for operation in operations:
|
for operation in operations:
|
||||||
|
try:
|
||||||
permissions = CONFIG.get(property_exp, operation)
|
permissions = CONFIG.get(property_exp, operation)
|
||||||
|
except configparser.NoOptionError:
|
||||||
|
raise InvalidPropProtectConf()
|
||||||
if permissions:
|
if permissions:
|
||||||
if self.prop_prot_rule_format == 'policies':
|
if self.prop_prot_rule_format == 'policies':
|
||||||
if ',' in permissions:
|
if ',' in permissions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user