Skip to content

Commit 33bccd1

Browse files
authored
init after loading dsn (#326)
1 parent 10b7e27 commit 33bccd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@
8686
import sentry_sdk
8787
except ImportError:
8888
sentry_sdk = None
89-
else:
90-
sentry_sdk.init()
9189

9290
HERE = Path(__file__).resolve().parent
9391

@@ -1005,6 +1003,8 @@ def main() -> int:
10051003
args = parse_args()
10061004
setup_logging(args.log_directory, args.select_output)
10071005
load_environment_variables()
1006+
if sentry_sdk:
1007+
sentry_sdk.init()
10081008

10091009
if args.select_output is None:
10101010
return build_docs_with_lock(args, "build_docs.lock")

0 commit comments

Comments
 (0)