mercurial/bookmarks.py
branchstable
changeset 16573 5983de86462c
parent 16276 6b16ded5c810
child 16697 c285aae10f6c
--- a/mercurial/bookmarks.py	Wed May 02 14:37:44 2012 -0700
+++ b/mercurial/bookmarks.py	Thu May 03 16:03:08 2012 -0500
@@ -7,7 +7,7 @@
 
 from mercurial.i18n import _
 from mercurial.node import hex
-from mercurial import encoding, error, util
+from mercurial import encoding, util
 import errno, os
 
 def valid(mark):
@@ -36,7 +36,7 @@
             refspec = encoding.tolocal(refspec)
             try:
                 bookmarks[refspec] = repo.changelog.lookup(sha)
-            except error.RepoLookupError:
+            except LookupError:
                 pass
     except IOError, inst:
         if inst.errno != errno.ENOENT: