diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-26 22:54:22 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-26 22:54:22 +0100 |
commit | 981945a9afe4cca3b2e93ee0a57a22460b68f794 (patch) | |
tree | 68bee2eb6eb3f76f7687a916ccf1d6666a9f33fb | |
parent | b3a637834bf7181276e4dcd1c6c9231a85b614dc (diff) | |
download | ranger-981945a9afe4cca3b2e93ee0a57a22460b68f794.tar.gz |
container.bookmarks: Don't remove invalid bookmarks at all
Non-existent bookmarks may be only temporarily unreachable (eg. pendrive, NFS), no point in removing them.
-rw-r--r-- | ranger/container/bookmarks.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/container/bookmarks.py b/ranger/container/bookmarks.py index e1a88fa2..20809c10 100644 --- a/ranger/container/bookmarks.py +++ b/ranger/container/bookmarks.py @@ -92,8 +92,7 @@ class Bookmarks(FileManagerAware): if os.path.isdir(value.path): return value else: - del self[key] - raise KeyError("Invalid Bookmark: `%s'!" % key) + raise KeyError("Cannot open bookmark: `%s'!" % key) else: raise KeyError("Nonexistant Bookmark: `%s'!" % key) |