summaryrefslogtreecommitdiff
path: root/paste/exceptions
diff options
context:
space:
mode:
authorthejimmyg <devnull@localhost>2006-08-30 12:22:46 +0000
committerthejimmyg <devnull@localhost>2006-08-30 12:22:46 +0000
commit2dcb0744b3c5897a09ff2d07a542f3e78d86c921 (patch)
treeebb38006c4836aa368312876e45ff08856fa83b0 /paste/exceptions
parent14a7061285f0e5202a74a028c929ab860707b818 (diff)
downloadpaste-2dcb0744b3c5897a09ff2d07a542f3e78d86c921.tar.gz
Some objects in Pylons 0.9.2dev error handling are getting to this stage without being converted to strings for display. Any such objects are now converted here.
Diffstat (limited to 'paste/exceptions')
-rw-r--r--paste/exceptions/formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/exceptions/formatter.py b/paste/exceptions/formatter.py
index 2b51b38..1dd592e 100644
--- a/paste/exceptions/formatter.py
+++ b/paste/exceptions/formatter.py
@@ -12,7 +12,7 @@ import re
from paste.util import PySourceColor
def html_quote(s):
- return cgi.escape(s, True)
+ return cgi.escape(str(s), True)
class AbstractFormatter(object):