diff options
author | hut <hut@lavabit.com> | 2011-10-10 16:20:03 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-10 16:20:23 +0200 |
commit | 177a6d04e0ae9f31195fd31ccb649abda2e9b420 (patch) | |
tree | b50a8e1e038cac338decc7301976a8c61f3912f6 /ranger | |
parent | 8bb9414bc7e1e666104bf4b8bf315b52284d3cb4 (diff) | |
download | ranger-177a6d04e0ae9f31195fd31ccb649abda2e9b420.tar.gz |
widgets.browsercolumn: Removed redundant try/except block
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 13 |
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""" |