diff --git a/titles/idac/frontend.py b/titles/idac/frontend.py index 88f2b44..e331a24 100644 --- a/titles/idac/frontend.py +++ b/titles/idac/frontend.py @@ -127,10 +127,11 @@ class IDACFrontend(FE_Base): ticket_data = await self.data.item.get_tickets(user_id) rank = await self.data.profile.get_profile_rank(user_id, self.version) - tickets = { - self.ticket_names[ticket["ticket_id"]]: ticket["ticket_cnt"] - for ticket in ticket_data - } + if ticket_data: + tickets = { + self.ticket_names[ticket["ticket_id"]]: ticket["ticket_cnt"] + for ticket in ticket_data + } return Response(template.render( title=f"{self.core_config.server.name} | {self.nav_name}", diff --git a/titles/idac/templates/idac_index.jinja b/titles/idac/templates/idac_index.jinja index d6e60ef..caa7770 100644 --- a/titles/idac/templates/idac_index.jinja +++ b/titles/idac/templates/idac_index.jinja @@ -4,9 +4,10 @@ {% if sesh is defined and sesh["user_id"] > 0 %}