Skip to content

Commit

Permalink
update: add global error catcher for now, while we didn't test it much
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Jul 8, 2024
1 parent ede0e3b commit 85e8a15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckanext/charts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ def update_chart(resource_id: str) -> str:
ERROR_TEMPLATE,
{"error_msg": tk._(f"Error building chart: {e}")},
)
# TODO: we probably want to know which exceptions exactly could happen instead
except Exception as e:
return tk.render(
ERROR_TEMPLATE,
{"error_msg": tk._(f"Error building chart: {e}")},
)


@charts.route("/api/utils/charts/update-form")
Expand Down

0 comments on commit 85e8a15

Please sign in to comment.