diff --git a/vendor/regidesk/regidesk/views.py b/vendor/regidesk/regidesk/views.py index 337dca8d..f1548224 100644 --- a/vendor/regidesk/regidesk/views.py +++ b/vendor/regidesk/regidesk/views.py @@ -274,12 +274,11 @@ def boarding_send(request): template = BoardingPassTemplate.objects.get(pk=template_pk) for attendee in attendees: - try: user = attendee.user bpass = prepare_boarding_pass(user, template, attendee) if user in boarding_users: - send_boarding_pass(user, bpass) + send_boarding_pass(bpass, user) messages.success(request, "Sent boarding pass to %s" % attendee) except Exception as err: logging.error("Error sending boarding pass for %s: %s", (attendee, err))