diff options
author | Riku Palomäki <riku@palomaki.fi> | 2011-05-04 14:02:29 +0300 |
---|---|---|
committer | Riku Palomäki <riku@palomaki.fi> | 2011-05-04 14:02:29 +0300 |
commit | 7defcc263846f8c92970c6537b55bdb8163505e8 (patch) | |
tree | 075c61d8288dc72dd8c44178cedc1eb583844894 /ranger | |
parent | 584fa6be243ff93d4a288b42ab2bfea7640542c0 (diff) | |
download | ranger-7defcc263846f8c92970c6537b55bdb8163505e8.tar.gz |
Fixed #33227, pager crashed when trying to read non-readable file
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/pager.py | 2 |
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 "" |