From 11fd0fe982ee72b30e007645e82f6bdb278f1bb4 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 17 Nov 2010 19:48:53 +0100 Subject: widgets.statusbar: Fixed crash after deleting current file --- ranger/gui/widgets/statusbar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0