changeset 266:5347d8c94021

python 2.4 syntax fix
author Antonin Amand <antonin.amand@gmail.com>
date Sun, 29 Nov 2009 16:24:34 +0100
parents 5790ef252511
children 7814c26758a2
files hggit/git_handler.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py	Tue Oct 27 22:40:11 2009 -0400
+++ b/hggit/git_handler.py	Sun Nov 29 16:24:34 2009 +0100
@@ -599,9 +599,10 @@
             return want
         f, commit = self.git.object_store.add_pack()
         try:
-            return client.fetch_pack(path, determine_wants, graphwalker, f.write, self.ui.status)
-        except HangupException:
-            raise hgutil.Abort("the remote end hung up unexpectedly")
+            try:
+                return client.fetch_pack(path, determine_wants, graphwalker, f.write, self.ui.status)
+            except HangupException:
+                raise hgutil.Abort("the remote end hung up unexpectedly")
         finally:
             commit()