From e49b7bf2904f7615e1392215fca3962deb6039d4 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 19 Apr 2013 14:25:02 -0500 Subject: [PATCH] As Elrond points out, we might as well .pop() default_handler --- mediagoblin/tools/pluginapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1