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:
9 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93