Skip to content

Commit

Permalink
add sentry reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Mar 7, 2024
1 parent cecf228 commit 4f8d4a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wizard/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import openpyxl
import orjson
import requests
from pywebio import start_server
from pywebio import start_server, config
from pywebio.input import NUMBER, actions, file_upload, input, input_group
from pywebio.output import clear, put_error, put_success, put_text, put_button, put_html, put_table, put_warning, put_link, put_widget
from pywebio.session import run_js
Expand Down Expand Up @@ -111,6 +111,8 @@ def wizard():
else:
put_reload_button()

if os.getenv("SENTRY_DSN"):
wizard = config(js_file="/data/scripts/sentry.js")(wizard)

def handle_metadata():
fields = []
Expand Down

0 comments on commit 4f8d4a6

Please sign in to comment.