From 9e24443e4cd46fb04647210e409fedc49072d4d8 Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Sun, 29 Jan 2023 07:59:20 +0100 Subject: [PATCH] Do not overwrite default for username with email address This line seems like a copy/paste error, introduced in 41120009fa7d6cb88d9219cb20874c9dd705639d. --- 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