diff --git a/sentry.conf.py b/sentry.conf.py index c447984..d95628c 100644 --- a/sentry.conf.py +++ b/sentry.conf.py @@ -193,4 +193,4 @@ # Expose any env that starts with SC_ for env_key, env_val in os.environ.items(): if env_key.startswith('SC_'): - setattr(sys.modules[__name__], env_key[3:], env_val) + globals()[env_key[3:]] = env_val