summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/package.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/apt/package.py b/apt/package.py
index 7de35687..51da95f8 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -1050,12 +1050,10 @@ class Package(object):
try:
with open(path, "rb") as file_list:
return file_list.read().decode("utf-8").split(u"\n")
- except OSError as error:
- continue
except EnvironmentError:
- return []
+ continue
- raise error
+ return []
def get_changelog(self, uri=None, cancel_lock=None):
"""