Skip to content

Commit

Permalink
mibios/views: fix exception type formatting in error log
Browse files Browse the repository at this point in the history
exc_type is the class already (and not the exception instance) so just
get the __name__ attribute.
  • Loading branch information
robert102 committed Nov 21, 2024
1 parent db9edfe commit 7aaefd8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mibios/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,9 @@ def close(self):
exc_type, exc_value, exc_traceback = sys.exc_info()
if exc_type is not None:
log.error(
f'Export aborted! cause: {exc_type.__class__.__name__}: '
f'{exc_value} / full)\n'
f'A traceback follows. If additionally a full traceback is'
f'printed to stdout/err, then this indicated a bug\nin mibios/'
f'Export aborted! cause: {exc_type.__name__}: {exc_value}\n'
f'A traceback follows. If additionally a full traceback is '
f'printed to stdout/err, then this indicates a bug in mibios/'
f'glamr. Absense of the extra stack trace indicates that WSGI'
f' aborted the export, possibly for client disconnection.'
)
Expand Down

0 comments on commit 7aaefd8

Please sign in to comment.