From 67fe18fe3f759eff9f3d49c957b6448d7ad3ddbc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 2 Nov 2013 13:30:29 -0400 Subject: [PATCH] Fix problem with an unhandled command without a default. --- confluent/pluginapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent/pluginapi.py b/confluent/pluginapi.py index 9666f7da..f52be041 100644 --- a/confluent/pluginapi.py +++ b/confluent/pluginapi.py @@ -98,7 +98,7 @@ def handle_path(path, operation, configmanager): passvalue = pluginmap[nodeattr[node][attrname]['value']].__dict__[operation]( nodes=(node,), element=element, configmanager=configmanager) - if plugroute['default']: + if 'default' in plugroute: passvalue = pluginmap[plugroute['default']].__dict__[operation]( nodes=(node,), element=element, configmanager=configmanager) if isinstance(passvalue, console.Console):