summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRiku Palomäki <riku@palomaki.fi>2011-05-04 14:02:29 +0300
committerRiku Palomäki <riku@palomaki.fi>2011-05-04 14:02:29 +0300
commit7defcc263846f8c92970c6537b55bdb8163505e8 (patch)
tree075c61d8288dc72dd8c44178cedc1eb583844894
parent584fa6be243ff93d4a288b42ab2bfea7640542c0 (diff)
downloadranger-7defcc263846f8c92970c6537b55bdb8163505e8.tar.gz
Fixed #33227, pager crashed when trying to read non-readable file
-rw-r--r--ranger/gui/widgets/pager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
index d851de3f..05485189 100644
--- a/ranger/gui/widgets/pager.py
+++ b/ranger/gui/widgets/pager.py
@@ -213,7 +213,7 @@ class Pager(Widget):
 						self.lines.append(l)
 						if len(self.lines) > n:
 							break
-				except UnicodeError:
+				except (UnicodeError, IOError):
 					pass
 				return self._get_line(n, attempt_to_read=False)
 			return ""