Show More
@@ -925,7 +925,7 b' class VerboseTB(TBTools):' | |||
|
925 | 925 | etype_str,evalue_str = map(str,(etype,evalue)) |
|
926 | 926 | # ... and format it |
|
927 | 927 | exception = ['%s%s%s: %s' % (Colors.excName, etype_str, |
|
928 | ColorsNormal, evalue_str)] | |
|
928 | ColorsNormal, py3compat.cast_unicode(evalue_str))] | |
|
929 | 929 | if (not py3compat.PY3) and type(evalue) is types.InstanceType: |
|
930 | 930 | try: |
|
931 | 931 | names = [w for w in dir(evalue) if isinstance(w, basestring)] |
@@ -937,7 +937,7 b' class VerboseTB(TBTools):' | |||
|
937 | 937 | exception.append(_m % (Colors.excName,ColorsNormal)) |
|
938 | 938 | etype_str,evalue_str = map(str,sys.exc_info()[:2]) |
|
939 | 939 | exception.append('%s%s%s: %s' % (Colors.excName,etype_str, |
|
940 | ColorsNormal, evalue_str)) | |
|
940 | ColorsNormal, py3compat.cast_unicode(evalue_str))) | |
|
941 | 941 | names = [] |
|
942 | 942 | for name in names: |
|
943 | 943 | value = text_repr(getattr(evalue, name)) |
General Comments 0
You need to be logged in to leave comments.
Login now