Skip to content

Commit dcde058

Browse files
author
Tyler Goodlet
committed
Avoid calling None in call_historic
Thanks to @rmfitzpatrick for this fix!
1 parent cc22337 commit dcde058

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pluggy/hooks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ def call_historic(self, proc=None, kwargs=None):
265265
self._call_history.append((kwargs or {}, proc))
266266
# historizing hooks don't return results
267267
res = self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
268+
if proc is None:
269+
return
268270
for x in res or []:
269271
proc(x)
270272

0 commit comments

Comments
 (0)