From c4c6851c55757fb0bc9d77da97d7db9e7ae232d7 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 28 Mar 2016 10:25:05 +0200 Subject: fix(refs): don't raise StopIteration Fixes #394 --- git/refs/symbolic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/refs/symbolic.py') 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. -- cgit v1.2.1