fixing hook_handle for when result is never assigned, avoid reference without assignent
This commit is contained in:
parent
e49b7bf290
commit
eff722ef15
@ -368,6 +368,8 @@ def hook_handle(hook_name, *args, **kwargs):
|
|||||||
|
|
||||||
callables = PluginManager().get_hook_callables(hook_name)
|
callables = PluginManager().get_hook_callables(hook_name)
|
||||||
|
|
||||||
|
result = None
|
||||||
|
|
||||||
for callable in callables:
|
for callable in callables:
|
||||||
result = callable(*args, **kwargs)
|
result = callable(*args, **kwargs)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user