add None for default env

pull/16738/head
zeeshanrafiqrana 2023-12-08 17:53:40 +05:00
parent 0c371b0c16
commit da85445554
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ def setup_sentry(hs: "HomeServer") -> None:
import sentry_sdk
# Set a default environment if it's not configured
default_environment = ""
default_environment = None
environment = hs.config.metrics.sentry_environment or default_environment
sentry_sdk.init(