about summary refs log tree commit diff stats
path: root/ranger/gui/displayable.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-06-22 00:01:38 +0700
committerstepshal <nessento@openmailbox.org>2016-06-22 00:01:38 +0700
commitbedfed3db77ecaafdb86e9e4847c7bb6ddc2563d (patch)
tree274a6e10436c085ac8421b53d7930761b6a08f60 /ranger/gui/displayable.py
parent5348e120aa6d39604b2426577f84669b9ce0aa24 (diff)
downloadranger-bedfed3db77ecaafdb86e9e4847c7bb6ddc2563d.tar.gz
Use 'except Exception:' instead of 'except:'
Diffstat (limited to 'ranger/gui/displayable.py')
-rw-r--r--ranger/gui/displayable.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index e8b627e8..9f2dbf0d 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -169,13 +169,13 @@ class Displayable(FileManagerAware, CursesShortcuts):
             window_is_cleared = True
             try:
                 self.win.resize(hei, wid)
-            except:
+            except Exception:
                 # Not enough space for resizing...
                 try:
                     self.win.mvderwin(0, 0)
                     do_move = True
                     self.win.resize(hei, wid)
-                except:
+                except Exception:
                     pass
                     #raise ValueError("Resizing Failed!")
 
@@ -188,7 +188,7 @@ class Displayable(FileManagerAware, CursesShortcuts):
             #log("moving " + str(self))
             try:
                 self.win.mvderwin(y, x)
-            except:
+            except Exception:
                 pass
 
             self.paryx = self.win.getparyx()