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