Ignore:
Timestamp:
8 Jul 2024, 16:52:59 (6 months ago)
Author:
Henrik Bettermann
Message:

Also p_session is an integer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/webservices.py

    r17833 r17836  
    424424            try:
    425425                current_level = int(current_level)
     426            except (TypeError, ValueError):
     427                hitlist.append(dict(error="Wrong parameters"))
     428                return hitlist
     429        if not p_session:
     430            p_session = None
     431        else:
     432            try:
     433                p_session = int(p_session)
    426434            except (TypeError, ValueError):
    427435                hitlist.append(dict(error="Wrong parameters"))
Note: See TracChangeset for help on using the changeset viewer.