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"""
the previous revision' href='/akspecs/ranger/blame/ranger.py?h=v1.5.5&id=921fa593d056ad791a48570196664ca29f57a8d4'>^
83868c7a ^
8fa87054 ^


a66c4a26 ^

f027adc0 ^
5c210a96 ^

3de15ddd ^

fb275079 ^

5c210a96 ^
3d566884 ^
e30d16cb ^
621a1a39 ^
9bc5d95c ^
c44b726e ^
465bff73 ^




f8e96a97 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51