summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-22 00:08:05 +0100
committerhut <hut@lavabit.com>2013-02-22 00:08:58 +0100
commit991b80f2fcfab3b3cb0c0c1c231f68662a093255 (patch)
treebe20d1523ba09fb34d64253a91d59328fd023047 /ranger
parentbb24315dc27e99d1fa4f6d2e4f358959d27ed042 (diff)
downloadranger-991b80f2fcfab3b3cb0c0c1c231f68662a093255.tar.gz
core.actions: fix a rare, silent exception
There was some code assuming that fm.thisfile is not None.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index e0612952..64dee8d4 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -864,7 +864,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
                         f.close()
                     else:
                         data[(-1, -1)] = None
-                    if self.thisfile.realpath == path:
+                    if self.thisfile and self.thisfile.realpath == path:
                         self.ui.browser.need_redraw = True
                     data['loading'] = False
                     pager = self.ui.browser.pager