aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/pluginapi.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-04-19 14:58:22 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-04-19 14:58:22 -0500
commiteff722ef15a921b7e8c4983fbd1d3ba09b4d6dd7 (patch)
treef58e689d7e796953cfd99fb7884818db1805f3d8 /mediagoblin/tools/pluginapi.py
parente49b7bf2904f7615e1392215fca3962deb6039d4 (diff)
downloadmediagoblin-eff722ef15a921b7e8c4983fbd1d3ba09b4d6dd7.tar.lz
mediagoblin-eff722ef15a921b7e8c4983fbd1d3ba09b4d6dd7.tar.xz
mediagoblin-eff722ef15a921b7e8c4983fbd1d3ba09b4d6dd7.zip
fixing hook_handle for when result is never assigned, avoid reference without assignent
Diffstat (limited to 'mediagoblin/tools/pluginapi.py')
-rw-r--r--mediagoblin/tools/pluginapi.py2
1 files changed, 2 insertions, 0 deletions
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)