Skip to content

Commit

Permalink
setup sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Feb 26, 2024
1 parent dcb65ec commit 66c6e29
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
15 changes: 14 additions & 1 deletion wizard/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions wizard/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies = [
"pyarrow>=14.0.2",
"pandas>=2.0.3",
"chardet>=5.2.0",
"sentry-sdk>=1.40.5",
]
requires-python = ">=3.8"
license = {text = "GPLv3"}
Expand Down
6 changes: 6 additions & 0 deletions wizard/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
from pywebio.session import run_js
from jinja2 import Environment, FileSystemLoader, select_autoescape

if os.getenv("SENTRY_DSN"):
import sentry_sdk
sentry_sdk.init(
dsn=os.getenv("SENTRY_DSN")
)

env = Environment(
loader=FileSystemLoader("./templates"),
autoescape=select_autoescape()
Expand Down

0 comments on commit 66c6e29

Please sign in to comment.