Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

fix(aws lambda wrapper): allow exception without type#339

Merged
adavidai merged 4 commits intomasterfrom
send-trace-on-exception-without-type
Apr 27, 2021
Merged

fix(aws lambda wrapper): allow exception without type#339
adavidai merged 4 commits intomasterfrom
send-trace-on-exception-without-type

Conversation

@adavidai
Copy link
Copy Markdown
Contributor

No description provided.

@adavidai adavidai requested a review from a team as a code owner April 26, 2021 16:08
@adavidai adavidai requested a review from maorlx April 26, 2021 16:08
Comment thread epsagon/event.py Outdated
"""
self.error_code = ErrorCode.EXCEPTION
self.exception['type'] = type(exception).__name__
if hasattr(exception, '__name__'):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if hasattr(exception, '__name__'):
if hasattr(type(exception), '__name__'):

Comment thread epsagon/event.py Outdated
if hasattr(exception, '__name__'):
self.exception['type'] = type(exception).__name__
else:
self.exception['type'] = None
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.exception['type'] = None
self.exception['type'] = ''

@adavidai adavidai changed the title Allow exception without type fix(aws lambda wrapper): Allow exception without type Apr 27, 2021
@adavidai adavidai changed the title fix(aws lambda wrapper): Allow exception without type fix(aws lambda wrapper): allow exception without type Apr 27, 2021
@adavidai adavidai merged commit c733326 into master Apr 27, 2021
@adavidai adavidai deleted the send-trace-on-exception-without-type branch April 27, 2021 09:40
@ranrib
Copy link
Copy Markdown
Contributor

ranrib commented Apr 27, 2021

🎉 This PR is included in version 1.65.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants