1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

I give up

This commit is contained in:
Steffo 2019-01-17 12:16:13 +01:00
parent 2c366769eb
commit f0cca142c4

View file

@ -115,11 +115,11 @@ def page_profile(name: str):
css = fl_g.session.query(db.ProfileData).filter_by(royal=user).one_or_none() css = fl_g.session.query(db.ProfileData).filter_by(royal=user).one_or_none()
mini_data = [] mini_data = []
for game in db.mini_list: for game in db.mini_list:
# TODO: investigate on why instrumentedlists are returned, or minis are not found
try: try:
data = game.mini_get_single_from_royal(fl_g.session, user) data = game.mini_get_single_from_royal(fl_g.session, user)
except errors.NotFoundError: except Exception:
data = None data = None
# TODO: investigate on why instrumentedlists are returned
if data is None: if data is None:
continue continue
elif isinstance(data, InstrumentedList): elif isinstance(data, InstrumentedList):