From eff722ef15a921b7e8c4983fbd1d3ba09b4d6dd7 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 19 Apr 2013 14:58:22 -0500 Subject: [PATCH] fixing hook_handle for when result is never assigned, avoid reference without assignent --- mediagoblin/tools/pluginapi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mediagoblin/tools/pluginapi.py b/mediagoblin/tools/pluginapi.py index 3ff16bcd..00586268 100644 --- a/mediagoblin/tools/pluginapi.py +++ b/mediagoblin/tools/pluginapi.py @@ -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)