Commit 771cfd4d authored by Shane Hathaway's avatar Shane Hathaway

We have to use str() instead of repr() because the error value can be HTML. Ugh.

parent 367e9a04
......@@ -17,8 +17,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.95 2002/04/03 20:43:52 shane Exp $'''
__version__='$Revision: 1.95 $'[11:-2]
$Id: SimpleItem.py,v 1.96 2002/04/04 16:24:32 shane Exp $'''
__version__='$Revision: 1.96 $'[11:-2]
import re, sys, Globals, App.Management, Acquisition, App.Undo
import AccessControl.Role, AccessControl.Owned, App.Common
......@@ -210,7 +210,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs, Traversable,
except:
LOG('OFS', ERROR, 'Exception while rendering an error message',
error=sys.exc_info())
v = repr(error_value) + (
v = str(error_value) + (
" (Also, an error occurred while attempting "
"to render the standard error message.)")
raise error_type, v, tb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment