Pylons/pyramid_debugtoolbar — pull request #43 by Cito (2011-10-27 17:24:49+00:00)
Title: Fix for problems with non-ascii exception messages

For instance, PostgreSQL creates error messages in latin-1 or utf-8 depending on how it is configured. The debug toolbar assumes that error messages are always ascii strings or unicode and crashes with a UnicodeDecodeError on such exceptions. This patch makes the debug toolbar handle and display such exceptions properly.