1. Adam Coddington
  2. python-teamspeak3
Issue #4 resolved

Semething goes wrong in 1.4.3

Anonymous created an issue

It this version three lines is engough to crash it: {{{

!python

import teamspeak3 c = teamspeak3.Client('####',10011) c.send_command(teamspeak3.Command('use',sid=###)) Process Process-1: Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(self._args, *self._kwargs) File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/client.py", line 87, in start_connection conn.main_loop() File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/connection.py", line 60, in main_loop self.write_command(comm) File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/connection.py", line 44, in write_command self.write("%s\n" % command.output) File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/message.py", line 165, in output self._clean_outgoing_value(value), File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/message.py", line 90, in _clean_outgoing_value return self._substitute_using_dictionary(self.FROM_PYTHON, value) File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/message.py", line 84, in _substitute_using_dictionary return re.sub(pattern, lambda k: dictionary[k.group()], text) File "/usr/lib/python2.7/re.py", line 151, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or buffer

}}}

BTW, how can I send command with parametrs like -something, or just like 'use #'

Comments (2)

  1. Log in to comment