Don't process unhandled arguments (e.g. 'driver') in HookeFrame.execute_command
authorW. Trevor King <wking@drexel.edu>
Sat, 14 Aug 2010 08:20:33 +0000 (04:20 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 14 Aug 2010 08:20:33 +0000 (04:20 -0400)
hooke/ui/gui/__init__.py

index 782691f181f8d75f57326504ca61531fa802529d..3d8a92da898a7db51611d98bc2aa2d09803f90e9 100644 (file)
@@ -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