Skip to content

Commit

Permalink
Add try catch error to homepage logging
Browse files Browse the repository at this point in the history
pbong committed Apr 8, 2024
1 parent 26c9fce commit bb605c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions callbacks/homepage/callbacks.py
Original file line number Diff line number Diff line change
@@ -310,7 +310,10 @@ def get_homepage_logs(
if ctx.triggered_id and not all(
val == 0 for val in analysis_nav_items_n_clicks
):
analysis_page_id = ctx.triggered_id.label
app.logger.info("%s|%s", request.remote_addr, analysis_page_id)

try:
analysis_page_id = ctx.triggered_id.label
app.logger.info("%s|%s", request.remote_addr, analysis_page_id)
except:
raise PreventUpdate

raise PreventUpdate

0 comments on commit bb605c2

Please sign in to comment.