From f0cca142c4362d3ce1ef65300aa635d9f923a8e6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 17 Jan 2019 12:16:13 +0100 Subject: [PATCH] I give up --- webserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver.py b/webserver.py index 0e308dcf..931f126e 100644 --- a/webserver.py +++ b/webserver.py @@ -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):