diff options
author | hut <hut@lavabit.com> | 2013-02-22 00:08:05 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-22 00:08:58 +0100 |
commit | 991b80f2fcfab3b3cb0c0c1c231f68662a093255 (patch) | |
tree | be20d1523ba09fb34d64253a91d59328fd023047 /ranger | |
parent | bb24315dc27e99d1fa4f6d2e4f358959d27ed042 (diff) | |
download | ranger-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.py | 2 |
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 |