From 177a6d04e0ae9f31195fd31ccb649abda2e9b420 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 10 Oct 2011 16:20:03 +0200 Subject: widgets.browsercolumn: Removed redundant try/except block --- ranger/gui/widgets/browsercolumn.py | 13 ++++--------- 1 file 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""" -- cgit 1.4.1-2-gfad0