Skip to content

Commit

Permalink
Handle gen exit properly
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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:
Expand Down

0 comments on commit ac17b4c

Please sign in to comment.