fix: Resolve issue with missing name if no attribute (#707)
<!-- .github/pull_request_template.md --> ## Description Resolve issue with missing name if no attribute ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
parent
0ca8ef2448
commit
6f4c117005
1 changed files with 2 additions and 1 deletions
|
|
@ -213,6 +213,7 @@ def setup_logging(log_level=None, name=None):
|
|||
else:
|
||||
exc_type, exc_value, tb = sys.exc_info()
|
||||
|
||||
if hasattr(exc_type, __name__):
|
||||
event_dict["exception_type"] = exc_type.__name__
|
||||
event_dict["exception_message"] = str(exc_value)
|
||||
event_dict["traceback"] = True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue