mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fixes #4891 Catch unicodedecode errors from python-apt
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user