Semething goes wrong in 1.4.3

Anonymous avatarAnonymous created an issue

It this version three lines is engough to crash it:

>>> 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.