diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-04-19 14:58:22 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-04-19 14:58:22 -0500 |
commit | eff722ef15a921b7e8c4983fbd1d3ba09b4d6dd7 (patch) | |
tree | f58e689d7e796953cfd99fb7884818db1805f3d8 /mediagoblin/tools/pluginapi.py | |
parent | e49b7bf2904f7615e1392215fca3962deb6039d4 (diff) | |
download | mediagoblin-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.py | 2 |
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) |