diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-03-28 10:25:05 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2016-03-28 10:25:05 +0200 |
commit | c4c6851c55757fb0bc9d77da97d7db9e7ae232d7 (patch) | |
tree | 428472c41e386689de2dbf99cf23e7a18dbb3c08 /git/refs | |
parent | c877794b51f43b5fb2338bda478228883288bcdd (diff) | |
download | gitpython-c4c6851c55757fb0bc9d77da97d7db9e7ae232d7.tar.gz |
fix(refs): don't raise StopIteration
Fixes #394
Diffstat (limited to 'git/refs')
-rw-r--r-- | git/refs/symbolic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py index f3799ed4..ae67a7ee 100644 --- a/git/refs/symbolic.py +++ b/git/refs/symbolic.py @@ -108,7 +108,7 @@ class SymbolicReference(object): yield tuple(line.split(' ', 1)) # END for each line except (OSError, IOError): - raise StopIteration + return # END no packed-refs file handling # NOTE: Had try-finally block around here to close the fp, # but some python version woudn't allow yields within that. |