Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Bug when entering empty string parameter

Mike Wolfe
2010-12-23
2013-04-17
  • Mike Wolfe
    Mike Wolfe
    2010-12-23

    I'm using the python server from trunk.  If I try to call a function from Excel and pass an empty string as a parameter, I get the following error:

    Traceback (most recent call last):
      File "/home/bgrandjean/xlloop/xlloop.py", line 173, in handle
        name = XLCodec.decode(self.request)
      File "/home/bgrandjean/xlloop/xlloop.py", line 44, in decode
        type = ord(socket.recv(1))
    TypeError: ord() expected a character, but string of length 0 found

    I tried debugging it myself, but I got too far down the rabbit hole with all the socket code.

    -Mike

     
  • Peter Smith
    Peter Smith
    2010-12-29

    Hi,

    Thanks for the bug report - the socket.recv didn't like the request to receive zero bytes. I've fixed the python server on the trunk.

    Regards,
    Peter