Fix err type logging

This commit is contained in:
shortcutme 2019-11-25 14:39:24 +01:00
parent 756f5a1608
commit 4f8e941e39
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -49,7 +49,7 @@ def formatException(err=None, format="text"):
file_title = file_name file_title = file_name
tb.append("%s line %s" % (file_title, line)) tb.append("%s line %s" % (file_title, line))
if format == "html": if format == "html":
return "%s: %s<br><small class='multiline'>%s</small>" % (exc_type.__name__, err, " > ".join(tb)) return "%s: %s<br><small class='multiline'>%s</small>" % (repr(err), err, " > ".join(tb))
else: else:
return "%s: %s in %s" % (exc_type.__name__, err, " > ".join(tb)) return "%s: %s in %s" % (exc_type.__name__, err, " > ".join(tb))