Skip to content

Commit

Permalink
Add extra debugging on exceptions rendering badges
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Oct 11, 2024
1 parent a2d79c1 commit a1be298
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions postgresqleu/confreg/backendviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ def view_registration_badge(request, urlname, regid):
try:
render_jinja_badges(conference, settings.REGISTER_FONTS, [reg.safe_export(), ], resp, False, False)
except Exception as e:
print("Exception rendering badge: {}".format(e))
return HttpResponse("Exception rendering badge: {}".format(e.__repr__()), content_type='text/plain')
return resp

Expand Down

0 comments on commit a1be298

Please sign in to comment.