summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-10 16:20:03 +0200
committerhut <hut@lavabit.com>2011-10-10 16:20:23 +0200
commit177a6d04e0ae9f31195fd31ccb649abda2e9b420 (patch)
treeb50a8e1e038cac338decc7301976a8c61f3912f6 /ranger
parent8bb9414bc7e1e666104bf4b8bf315b52284d3cb4 (diff)
downloadranger-177a6d04e0ae9f31195fd31ccb649abda2e9b420.tar.gz
widgets.browsercolumn: Removed redundant try/except block
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browsercolumn.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 1000f753..0adcd27a 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -160,17 +160,12 @@ class BrowserColumn(Pager):
 			Pager.close(self)
 			return
 
-		try:
-			f = self.target.get_preview_source(self.wid, self.hei)
-		except:
-			raise # XXX
+		f = self.target.get_preview_source(self.wid, self.hei)
+		if f is None:
 			Pager.close(self)
 		else:
-			if f is None:
-				Pager.close(self)
-			else:
-				self.set_source(f)
-				Pager.draw(self)
+			self.set_source(f)
+			Pager.draw(self)
 
 	def _draw_directory(self):
 		"""Draw the contents of a directory"""