Gracefully handle users with no ticket

This commit is contained in:
James Polley 2018-01-15 09:10:16 +11:00
parent 3ffa5fab60
commit 0bb2f8c25d

View file

@ -102,6 +102,9 @@ def ticket_type(context):
# Default to purchased ticket type (only item from category 1)
items = registrasion_tags.items_purchased(context, 1)
if not items:
return "NO TICKET"
item = next(iter(items))
name = item.product.name
if name == "Conference Volunteer":