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