From b09ff78eb083828ebb08b71b76578851c5b352f7 Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Mon, 30 Jan 2023 12:51:13 +0100 Subject: [PATCH] Do not overwrite default for username with email address in FlaskIntegration (#1873) This line seems like a copy/paste error, introduced in 41120009fa7d6cb88d9219cb20874c9dd705639d. Co-authored-by: Neel Shah --- sentry_sdk/integrations/flask.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sentry_sdk/integrations/flask.py b/sentry_sdk/integrations/flask.py index 67c87b64f6..e1755f548b 100644 --- a/sentry_sdk/integrations/flask.py +++ b/sentry_sdk/integrations/flask.py @@ -261,6 +261,5 @@ def _add_user_to_event(event): try: user_info.setdefault("username", user.username) - user_info.setdefault("username", user.email) except Exception: pass