changeset 9245:d7d3afd935fa

update: make a naked except more specific (issue1766)
author Matt Mackall <mpm@selenic.com>
date Sat, 25 Jul 2009 19:04:08 -0500
parents 3f52a70959ce
children 2de7d96593db
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)