diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | git/refs/symbolic.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ *.py[co] *.swp *~ +.venv/ /*.egg-info /lib/GitPython.egg-info cover/ 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. |