about summary refs log tree commit diff stats
path: root/ranger/gui/displayable.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-30 05:48:20 +0100
committerhut <hut@lavabit.com>2009-12-30 05:48:20 +0100
commitf1352f4009333f382a1dddfe089326b8a57b4150 (patch)
tree45ffde3d1dbec6af42c81e9adc6f920452f32a47 /ranger/gui/displayable.py
parent923844b32aa8253d78c4aea005eee1b4df67fa6d (diff)
downloadranger-f1352f4009333f382a1dddfe089326b8a57b4150.tar.gz
fixed a few things~
Diffstat (limited to 'ranger/gui/displayable.py')
-rw-r--r--ranger/gui/displayable.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index a9c297b5..41ed9ae4 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -1,5 +1,6 @@
 from ranger.shared import FileManagerAware, EnvironmentAware, SettingsAware
 from ranger import log
+import _curses
 
 class Displayable(EnvironmentAware, FileManagerAware, SettingsAware):
 	focused = False
@@ -50,7 +51,7 @@ class Displayable(EnvironmentAware, FileManagerAware, SettingsAware):
 	def addstr(self, *args):
 		try:
 			self.win.addstr(*args)
-		except:
+		except _curses.error:
 			pass
 	
 	def color(self, keylist = None, *keys):
@@ -59,7 +60,7 @@ class Displayable(EnvironmentAware, FileManagerAware, SettingsAware):
 		attr = self.colorscheme.get_attr(*keys)
 		try:
 			self.win.attrset(attr)
-		except:
+		except _curses.error:
 			pass
 
 	def color_at(self, y, x, wid, keylist = None, *keys):
@@ -68,7 +69,7 @@ class Displayable(EnvironmentAware, FileManagerAware, SettingsAware):
 		attr = self.colorscheme.get_attr(*keys)
 		try:
 			self.win.chgat(y, x, wid, attr)
-		except:
+		except _curses.error:
 			pass
 	
 	def color_reset(self):