Fixes #4891 Catch unicodedecode errors from python-apt
This commit is contained in:
parent
53ba890312
commit
db163d51ba
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue