summary refs log tree commit diff stats
path: root/ranger/gui/widgets/view_miller.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/gui/widgets/view_miller.py')
-rw-r--r--ranger/gui/widgets/view_miller.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/widgets/view_miller.py b/ranger/gui/widgets/view_miller.py
index 569b93fa..e79ade79 100644
--- a/ranger/gui/widgets/view_miller.py
+++ b/ranger/gui/widgets/view_miller.py
@@ -155,7 +155,7 @@ class ViewMiller(ViewBase):  # pylint: disable=too-many-ancestors,too-many-insta
                 self.addch(0, x, curses.ACS_TTEE, 0)
                 self.addch(y, x, curses.ACS_BTEE, 0)
                 # pylint: enable=no-member
-            except Exception:
+            except curses.error:
                 # in case it's off the boundaries
                 pass
 
@@ -186,7 +186,7 @@ class ViewMiller(ViewBase):  # pylint: disable=too-many-ancestors,too-many-insta
                     self.fm.settings.use_preview_script:
                 try:
                     result = not self.fm.previews[target.realpath]['foundpreview']
-                except Exception:
+                except KeyError:
                     return self.old_collapse
 
         self.old_collapse = result