From f332bb0d7cc9295ade8d0c0cc468be7ae1a86c54 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 13 Nov 2013 09:48:56 -0500 Subject: [PATCH] Fixes #4891 Catch unicodedecode errors from python-apt --- library/packaging/apt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/packaging/apt b/library/packaging/apt index 5173ce60c75..403ce0ea960 100644 --- a/library/packaging/apt +++ b/library/packaging/apt @@ -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