martin0258 / skyfire

Use skype as your campfire client app
0 stars 0 forks source link

SkypeError: [Errno 510] Invalid/uknown chat name given #18

Open martin0258 opened 12 years ago

martin0258 commented 12 years ago

Platform: Ubuntu 12.04 Problem: crashed after using "/me" sometimes Following is the log:

Leader Room SENDING skysourcefire - [Eric Yang]
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "build/bdist.linux-x86_64/egg/pyfire/stream.py", line 161, in run
    process.fetch()
  File "build/bdist.linux-x86_64/egg/pyfire/stream.py", line 250, in fetch
    self.received(messages)
  File "build/bdist.linux-x86_64/egg/pyfire/stream.py", line 266, in received
    self._callback(messages)
  File "build/bdist.linux-x86_64/egg/pyfire/stream.py", line 90, in incoming
    observer(Message(campfire, message))
  File "skyfire.py", line 187, in incoming
    skype.CreateChatUsingBlob(roomBlob).SendMessage(msg)
  File "/usr/local/lib/python2.7/dist-packages/Skype4Py/chat.py", line 108, in SendMessage
    tounicode(MessageText))), 2)[1])
  File "/usr/local/lib/python2.7/dist-packages/Skype4Py/skype.py", line 281, in _DoCommand
    raise SkypeError(int(errnum), errstr)
SkypeError: [Errno 510] Invalid/uknown chat name given

Listening for room [Team Room EY]...
hi good morning!!
good morning
martin0258 commented 12 years ago

We may use the following method to capture all the errors occur when executing a Skype command.

def SkypeErrorHandler(command, Number, Description):
    # Do what you want
    pass
skype.OnError = SkypeErrorHandler