diff --git a/policies/policy.py b/policies/policy.py index 19ece2c..60dacf9 100644 --- a/policies/policy.py +++ b/policies/policy.py @@ -323,6 +323,10 @@ class AgePolicy(BasePolicy): except AttributeError: filename = fallback_filename + if not os.path.exists(filename): + self.log("%s missing; using default for all packages" % filename) + return + with open(filename, errors='surrogateescape', encoding='ascii') as fd: for line in fd: #