oberstet/Autobahn — Issue #88: Error in traceback
Author: abrandl
Created: 2012-01-24 14:10:22+00:00
State: open

The topic_id parameter in the publish method of WampClientProtocol should
be a string. When I call the method with an integer, the Exception that should
be raised does not work as expected:

--- ---
[...]
File "/usr/local/lib/python2.6/dist-packages/autobahn-0.4.10-py2.6.egg/autobahn/wamp.py", line 1052, in publish
raise Exception("invalid type for parameter 'topicUri' - must be string (was %s)" % str(type(topicUri)))
exceptions.NameError: global name 'topicUri' is not defined

As can be seen in the traceback, this problem occurs in autobahn 0.4.10.

BTW: I don't think it is necessary to convert type(topicUri) to a string before feeding it into the string with "%".

Please fix.

Thanks,

Albert