Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created May 1, 2009 00:35
Show Gist options
  • Save defunkt/104785 to your computer and use it in GitHub Desktop.
Save defunkt/104785 to your computer and use it in GitHub Desktop.
diff -r dcb334be7daa dulwich/pack.py
--- a/dulwich/pack.py Thu Apr 30 13:54:33 2009 -0700
+++ b/dulwich/pack.py Thu Apr 30 18:45:21 2009 -0400
@@ -500,8 +500,10 @@
offset += total_size
if progress:
progress(i, num)
- finally:
map.close()
+ except:
+ map.close()
+ raise
def iterentries(self, ext_resolve_ref=None, progress=None):
found = {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment