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: