Commit f332bb0d by James Tanner

Fixes #4891 Catch unicodedecode errors from python-apt

parent 6dd81f25
......@@ -174,6 +174,8 @@ def package_status(m, pkgname, version, cache, state):
return False, False, False
try:
has_files = len(pkg.installed_files) > 0
except UnicodeDecodeError:
has_files = True
except AttributeError:
has_files = False # older python-apt cannot be used to determine non-purged
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment