summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-31 05:11:39 +0200
committerhut <hut@lavabit.com>2010-03-31 05:11:39 +0200
commite6710b99555c3a7e0d80c0c19f8474ac4a5dcc0a (patch)
tree9452b3fd1aebd93e64c02900303594786833207a
parent96479abb595b8c6c30b1473ada2b78777c7e5f4c (diff)
downloadranger-e6710b99555c3a7e0d80c0c19f8474ac4a5dcc0a.tar.gz
fsobject.directory: don't load if it doesnt exist
-rw-r--r--ranger/fsobject/directory.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 6eedcb0c..86e78b33 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -397,6 +397,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 			real_mtime = os.stat(self.path).st_mtime
 		except OSError:
 			real_mtime = None
+			return False
 		if self.stat:
 			cached_mtime = self.load_content_mtime
 		else:
113'>113 114 115 116 117 118 119 120 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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222