Unverified Commit 331d4954 authored by mvdbeek's avatar mvdbeek
Browse files

Decrease log level for requesting invalid items

parent 98bffa17
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ def get_object(trans, id, class_name, check_ownership=False, check_accessible=Fa
        item = trans.sa_session.query(item_class).get(decoded_id)
        assert item is not None
    except Exception:
        log.exception(f"Invalid {class_name} id ( {id} ) specified.")
        log.warning(f"Invalid {class_name} id ( {id} ) specified.")
        raise exceptions.MessageException(f"Invalid {class_name} id ( {id} ) specified", type="error")

    if check_ownership or check_accessible: