summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-08-10 12:57:46 +0200
committerhut <hut@lavabit.com>2011-08-10 12:57:46 +0200
commitc6e105e1c4fb59a5f35dae432340fdfb0304ba52 (patch)
treea654f70bbaeac6ebec03dd0d70d1da7312bcb4fe
parente77a5e28385f8b191c4331962662c025b422a797 (diff)
parent7defcc263846f8c92970c6537b55bdb8163505e8 (diff)
downloadranger-c6e105e1c4fb59a5f35dae432340fdfb0304ba52.tar.gz
Merge https://github.com/tonttu/ranger
-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 ""