update: make a naked except more specific (issue1766)
authorMatt Mackall <mpm@selenic.com>
Sat, 25 Jul 2009 19:04:08 -0500
changeset 9245 d7d3afd935fa
parent 9244 3f52a70959ce
child 9246 2de7d96593db
update: make a naked except more specific (issue1766)
mercurial/hg.py
--- a/mercurial/hg.py	Sat Jul 25 02:20:27 2009 +0200
+++ b/mercurial/hg.py	Sat Jul 25 19:04:08 2009 -0500
@@ -138,7 +138,7 @@
             try:
                 uprev = r.lookup(test)
                 break
-            except:
+            except LookupError:
                 continue
         _update(r, uprev)