Skip to content

Commit

Permalink
Fix flashing error messages on duplicate reg
Browse files Browse the repository at this point in the history
  • Loading branch information
gdaviet committed Dec 8, 2024
1 parent df49f03 commit 1235afd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions collectives/routes/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def self_register(event_id):
try:
event.add_registration_check_race_conditions(registration)
except RuntimeError as err:
flash(err.value, "error")
flash(str(err), "error")
return redirect(url_for("event.view_event", event_id=event_id))

if event.event_type.requires_activity:
Expand All @@ -727,7 +727,7 @@ def self_register(event_id):
try:
event.add_registration_check_race_conditions(registration)
except RuntimeError as err:
flash(err.value, "error")
flash(str(err), "error")

return redirect(url_for("event.view_event", event_id=event_id))

Expand All @@ -749,7 +749,7 @@ def self_register(event_id):
try:
event.add_registration_check_race_conditions(registration)
except RuntimeError as err:
flash(err.value, "error")
flash(str(err), "error")
return redirect(url_for("event.view_event", event_id=event_id))

payment = Payment(registration=registration, item_price=item_price)
Expand Down

0 comments on commit 1235afd

Please sign in to comment.