summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/fsobject/fsobject.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py
index c0ab6a9c..7899e5f5 100644
--- a/ranger/fsobject/fsobject.py
+++ b/ranger/fsobject/fsobject.py
@@ -194,7 +194,10 @@ class FileSystemObject(MimeTypeAware, FileManagerAware):
 		if self.load_once(): return True
 
 		import os
-		real_mtime = os.stat(self.path).st_mtime
+		try:
+			real_mtime = os.stat(self.path).st_mtime
+		except OSError:
+			return False
 		cached_mtime = self.stat.st_mtime
 
 		if real_mtime != cached_mtime:
>31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59