From 51ae62c657f27d54c8eeeb1ee1cbeb9422f56dd5 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 14 Aug 2010 04:20:33 -0400 Subject: [PATCH] Don't process unhandled arguments (e.g. 'driver') in HookeFrame.execute_command --- hooke/ui/gui/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooke/ui/gui/__init__.py b/hooke/ui/gui/__init__.py index 782691f..3d8a92d 100644 --- a/hooke/ui/gui/__init__.py +++ b/hooke/ui/gui/__init__.py @@ -321,6 +321,8 @@ class HookeFrame (wx.Frame): index = int(name[len(arg.name):]) args[arg.name][index] = value for arg in command.arguments: + if arg.name not in args: + continue # undisplayed argument, e.g. 'driver' types. count = arg.count if hasattr(arg, '_display_count'): # support HACK in props_from_argument() count = arg._display_count -- 2.26.2