Skip to content

Commit 831013f

Browse files
feat: Remove special cases for error messages
1 parent d864ba0 commit 831013f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sentry_sdk/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -654,11 +654,7 @@ def get_errno(exc_value):
654654

655655
def get_error_message(exc_value):
656656
# type: (Optional[BaseException]) -> str
657-
message = safe_str(
658-
getattr(exc_value, "message", "")
659-
or getattr(exc_value, "detail", "")
660-
or safe_str(exc_value)
661-
) # type: str
657+
message = safe_str(exc_value)
662658

663659
# __notes__ should be a list of strings when notes are added
664660
# via add_note, but can be anything else if __notes__ is set

0 commit comments

Comments
 (0)