fixing hook_handle for when result is never assigned, avoid reference without assignent

This commit is contained in:
Christopher Allan Webber 2013-04-19 14:58:22 -05:00
parent e49b7bf290
commit eff722ef15

View File

@ -368,6 +368,8 @@ def hook_handle(hook_name, *args, **kwargs):
callables = PluginManager().get_hook_callables(hook_name)
result = None
for callable in callables:
result = callable(*args, **kwargs)