diff options
Diffstat (limited to 'ranger/container/bookmarks.py')
-rw-r--r-- | ranger/container/bookmarks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/container/bookmarks.py b/ranger/container/bookmarks.py index 1a42fb13..8504bef9 100644 --- a/ranger/container/bookmarks.py +++ b/ranger/container/bookmarks.py @@ -157,7 +157,7 @@ class Bookmarks(object): and key in ALLOWED_KEYS: try: f.write("{0}:{1}\n".format(str(key), str(value))) - except: + except Exception: pass f.close() @@ -179,7 +179,7 @@ class Bookmarks(object): if not os.path.exists(self.path): try: f = open(self.path, 'w') - except: + except Exception: raise OSError('Cannot read the given path') f.close() |