bisect: remove useless try/except
authorPatrick Mezard <pmezard@gmail.com>
Sat, 22 Sep 2007 19:05:36 +0200
changeset 5322 121816063b9a
parent 5321 639935f2e63a
child 5323 46455285c6b5
bisect: remove useless try/except
hgext/hbisect.py
--- a/hgext/hbisect.py	Sat Sep 22 18:56:36 2007 +0200
+++ b/hgext/hbisect.py	Sat Sep 22 19:05:36 2007 +0200
@@ -303,12 +303,9 @@
     if len(args) > bisectcmdtable[cmd][1]:
         ui.warn(_("bisect: Too many arguments\n"))
         return help_()
-    try:
-        ret = bisectcmdtable[cmd][0](*args)
-        b.write()
-        return ret
-    except:
-        raise
+    ret = bisectcmdtable[cmd][0](*args)
+    b.write()
+    return ret
 
 cmdtable = {
     "bisect": (bisect_run, [], _("hg bisect [help|init|reset|next|good|bad]")),