osc-send should validate type of arguments when using typetags

Create issue
Issue #13 resolved
Alexandre Quessy created an issue

{{{ posture@posture06:~$ osc-send osc.udp://10.21.10.16:54324 /SPIN/hola/grid ,sii setParam qwe 1 Traceback (most recent call last): File "/usr/bin/osc-send", line 203, in <module> reactor.run() File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1170, in run self.mainLoop() File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1179, in mainLoop self.runUntilCurrent() --- <exception caught here> --- File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 778, in runUntilCurrent call.func(call.args, call.kw) File "/usr/bin/osc-send", line 197, in _later send_manual(protocol, port, host, path, type_tags, args[args_index:]) File "/usr/bin/osc-send", line 110, in send_manual casted = cast(value) exceptions.ValueError: invalid literal for int() with base 10: 'qwe'

}}}

Comments (2)

  1. Log in to comment