summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-11-17 19:48:53 +0100
committerhut <hut@lavabit.com>2010-11-17 19:48:53 +0100
commit11fd0fe982ee72b30e007645e82f6bdb278f1bb4 (patch)
treef167f37838d8715797e8d5950041f8b866ae97f8
parent6f7e95101cab739967c3f8edb4e1f6b8906e3794 (diff)
downloadranger-11fd0fe982ee72b30e007645e82f6bdb278f1bb4.tar.gz
widgets.statusbar: Fixed crash after deleting current file
-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 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
 
128 129 130
id='n121' href='#n121'>121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170