summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-11-17 19:48:53 +0100
committerhut <hut@lavabit.com>2010-11-22 02:35:03 +0100
commit2ef7d919e75ba172257b5f5cbc1ad0abe371e0b3 (patch)
tree15d1dd4419eb8f1060fbdd461c83c6f92197ec5d /ranger
parentf44c4a886d8a984b6297a7847f87ef0e469e785b (diff)
downloadranger-2ef7d919e75ba172257b5f5cbc1ad0abe371e0b3.tar.gz
widgets.statusbar: Fixed crash after deleting current file
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/statusbar.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index c51af0ff..5eedce05 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