summary refs log tree commit diff stats
path: root/ranger/bookmark.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-06 12:31:33 +0100
committerhut <hut@lavabit.com>2009-12-06 12:31:33 +0100
commit465bff736d234e57efb2e9232df8882f3fd3a5cb (patch)
treec36725fc98a1e63bfdbe694a96c71cb28d3708f4 /ranger/bookmark.py
parent4162b636289f065b056e180389456d9f30ee796c (diff)
downloadranger-465bff736d234e57efb2e9232df8882f3fd3a5cb.tar.gz
changing implementation of options
Diffstat (limited to 'ranger/bookmark.py')
-rw-r--r--ranger/bookmark.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/bookmark.py b/ranger/bookmark.py
index 4b931292..da54e8eb 100644
--- a/ranger/bookmark.py
+++ b/ranger/bookmark.py
@@ -37,7 +37,10 @@ class Bookmarks(object):
 
 	def get_mtime(self):
 		import os
-		return os.stat(self.path).st_mtime
+		try:
+			return os.stat(self.path).st_mtime
+		except OSError:
+			return None
 
 	def load(self):
 		try: