Skip to content

Commit

Permalink
Fix error handling (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
rechner authored Nov 7, 2023
1 parent c62f107 commit 540b97a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions registration/views/dealers.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,8 @@ def addNewDealer(request):
try:
birthdate = tz.localize(datetime.strptime(pda["birthdate"], "%Y-%m-%d"))
except ValueError as e:
logger.warning(f"Unable to parse birthdate: {birthdate} - {e}")
return common.abort(400, f"Unable to parse birthdate: {birthdate}")
logger.warning(f"Unable to parse birthdate: {pda['birthdate']} - {e}")
return common.abort(400, f"Unable to parse birthdate: {pda['birthdate']}")
event = Event.objects.get(name=evt)

attendee = Attendee(
Expand Down

0 comments on commit 540b97a

Please sign in to comment.