FIX: Fix HTTP 500 on registry API endpoint

This commit is contained in:
Dominique Barton 2019-02-22 00:37:22 +01:00
parent 0b3cbd67f7
commit 507b041e13
2 changed files with 3 additions and 1 deletions

View file

@ -75,6 +75,8 @@ class Card(object):
except (KeyError, AssertionError):
raise InvalidCardType('Card class for type "{}" does\'t exist.'.format(card_type))
return cls
@classmethod
def get_type(cls, card_class=None):
'''

View file

@ -79,7 +79,7 @@ class RegistryHandler(RequestHandler):
'''
cards = []
for uid, card in cards.Card.all().items():
for uid, card in Card.all().items():
cards.append(card.dict)
data = {