We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10b7e27 commit 23ffc9bCopy full SHA for 23ffc9b
1 file changed
build_docs.py
@@ -86,8 +86,6 @@
86
import sentry_sdk
87
except ImportError:
88
sentry_sdk = None
89
-else:
90
- sentry_sdk.init()
91
92
HERE = Path(__file__).resolve().parent
93
@@ -1005,6 +1003,8 @@ def main() -> int:
1005
1003
args = parse_args()
1006
1004
setup_logging(args.log_directory, args.select_output)
1007
load_environment_variables()
+ if sentry_sdk:
+ sentry_sdk.init()
1008
1009
if args.select_output is None:
1010
return build_docs_with_lock(args, "build_docs.lock")
0 commit comments