diff options
author | hut <hut@lavabit.com> | 2010-11-17 19:48:53 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-11-17 19:48:53 +0100 |
commit | 11fd0fe982ee72b30e007645e82f6bdb278f1bb4 (patch) | |
tree | f167f37838d8715797e8d5950041f8b866ae97f8 /ranger | |
parent | 6f7e95101cab739967c3f8edb4e1f6b8906e3794 (diff) | |
download | ranger-11fd0fe982ee72b30e007645e82f6bdb278f1bb4.tar.gz |
widgets.statusbar: Fixed crash after deleting current file
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index e1cba8eb..2f3c67cf 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -80,7 +80,10 @@ class StatusBar(Widget): if self.env.cf: self.env.cf.load_if_outdated() - ctime = self.env.cf.stat.st_ctime + try: + ctime = self.env.cf.stat.st_ctime + except: + ctime = -1 else: ctime = -1 |