Unicode.decode() bug in init.py file

Issue #8 duplicate
Former user created an issue

Hi! i installed dogslow today (with python 2.7) and got this error:

{{{ #!python 2012-01-25 15:53:48,765 ERROR Request watchdog failed Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/dogslow-0.9.2-py2.7.egg/dogslow/init.py", line 132, in peek unicode.decode() TypeError: descriptor 'decode' of 'unicode' object needs an argument

}}}

i then opened the init file, went on line 132 and the code is:

{{{ #!python else: output += 'Full backtrace with local variables:' output += '\n\n' output += stack(frame, with_locals=True)

            unicode.decode()

}}}

commenting away the "unicode.decode()" statement fixes the problem. i don't know if it's a bug, issue or what, this is the first time i make a contribution like this but i hope it's helpful

Comments (3)

  1. inactivist

    I'm seeing this error under Python 2.7.1 with the 0.9.2 tarball from PyPi (installed via pip install dogslow per the installation instructions.)

    What's the recommended fix?

  2. Log in to comment