From 7d6389d61aa56db355033166b415dd0b83dabff9 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 1 Jan 2010 17:19:48 +0100 Subject: bookmarks: changed NonexistantBookmark to KeyError --- ranger/actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ranger/actions.py') diff --git a/ranger/actions.py b/ranger/actions.py index d379c6cf..c1ea7485 100644 --- a/ranger/actions.py +++ b/ranger/actions.py @@ -110,14 +110,13 @@ class Actions(EnvironmentAware, SettingsAware): def enter_bookmark(self, key): """Enter the bookmark with the name """ - from ranger.container.bookmarks import NonexistantBookmark try: destination = self.bookmarks[key] pwd = self.env.pwd if destination.path != pwd.path: self.bookmarks.enter(key) self.bookmarks.remember(pwd) - except NonexistantBookmark: + except KeyError: pass def set_bookmark(self, key): -- cgit 1.4.1-2-gfad0