aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/pluginapi.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-04-19 14:25:02 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-04-19 14:25:02 -0500
commite49b7bf2904f7615e1392215fca3962deb6039d4 (patch)
treea9fa37856c7f64a1c9f964f16010d405d8110573 /mediagoblin/tools/pluginapi.py
parentff259f6bf356412b98d6a691927210f196860215 (diff)
downloadmediagoblin-e49b7bf2904f7615e1392215fca3962deb6039d4.tar.lz
mediagoblin-e49b7bf2904f7615e1392215fca3962deb6039d4.tar.xz
mediagoblin-e49b7bf2904f7615e1392215fca3962deb6039d4.zip
As Elrond points out, we might as well .pop() default_handler
Diffstat (limited to 'mediagoblin/tools/pluginapi.py')
-rw-r--r--mediagoblin/tools/pluginapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tools/pluginapi.py b/mediagoblin/tools/pluginapi.py
index ef735e54..3ff16bcd 100644
--- a/mediagoblin/tools/pluginapi.py
+++ b/mediagoblin/tools/pluginapi.py
@@ -364,7 +364,7 @@ def hook_handle(hook_name, *args, **kwargs):
- You need an interface implemented, but only one fit for it
- You need to *do* something, but only one thing needs to do it.
"""
- default_handler = kwargs.get('default_handler')
+ default_handler = kwargs.pop('default_handler', None)
callables = PluginManager().get_hook_callables(hook_name)