1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44: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()
mini_data = []
for game in db.mini_list:
# TODO: investigate on why instrumentedlists are returned, or minis are not found
try:
data = game.mini_get_single_from_royal(fl_g.session, user)
except errors.NotFoundError:
except Exception:
data = None
# TODO: investigate on why instrumentedlists are returned
if data is None:
continue
elif isinstance(data, InstrumentedList):