Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle gen exit properly
Browse files Browse the repository at this point in the history
Tyler Goodlet committed Nov 24, 2017
1 parent 6982e81 commit ac17b4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pluggy/callers.py
Original file line number Diff line number Diff line change
@@ -238,6 +238,8 @@ def _itercall(hook_impls, caller_kwargs, specopts={}, hook=None):
yield res
if firstresult: # halt further impl calls
break
except GeneratorExit:
pass # loop was terminated prematurely by caller
except BaseException:
excinfo = sys.exc_info()
finally:

0 comments on commit ac17b4c

Please sign in to comment.