~homeworkprod/byceps

8d6c8fff423db3603a5b644db24c413ffbf05c89 — Jochen Kupperschmidt a month ago 4e95e59
Ignore invalid user ID in session
1 files changed, 4 insertions(+), 1 deletions(-)

M byceps/util/user_session.py
M byceps/util/user_session.py => byceps/util/user_session.py +4 -1
@@ 91,7 91,10 @@ def _load_user(
    if user_id_str is None:
        return None

    user_id = UserID(UUID(user_id_str))
    try:
        user_id = UserID(UUID(user_id_str))
    except ValueError:
        return None

    user = user_service.find_active_user(
        user_id, include_avatar=True, include_orga_flag_for_party_id=party_id