diff options
Diffstat (limited to 'oslo_policy/policy.py')
-rw-r--r-- | oslo_policy/policy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_policy/policy.py b/oslo_policy/policy.py index 6480767..6c9dceb 100644 --- a/oslo_policy/policy.py +++ b/oslo_policy/policy.py @@ -350,7 +350,7 @@ def parse_file_contents(data): # For backwards-compatibility, convert yaml error to ValueError, # which is what JSON loader raised. raise ValueError(six.text_type(e)) - return parsed + return parsed or {} class Rules(dict): |