[entropy.tools] fix print_exception

This commit is contained in:
Fabio Erculiani
2009-10-04 18:32:23 +02:00
parent f7149b7f9b
commit e7d79be11f
+2 -2
View File
@@ -202,9 +202,9 @@ def print_exception(returndata = False):
data.append("\t%20s = " % key,)
try:
if not returndata:
sys.stdout.write(value + "\n")
sys.stdout.write(repr(value) + "\n")
else:
data.append(value)
data.append(repr(value))
except:
if not returndata:
sys.stdout.write("<ERROR WHILE PRINTING VALUE>\n")