1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00

rq list: Fix traceback when there's no search criteria

This commit is contained in:
Daniel Mach 2022-10-13 09:44:51 +02:00
parent 77beee1d4a
commit 5478f726e8

View File

@ -4486,7 +4486,7 @@ def get_request_collection(
# We don't want to overload server by requesting everything.
# Let's enforce specifying at least some search criteria.
if not any([user, group, project, package, ids]):
raise ValueError("Please specify search criteria")
raise oscerr.OscValueError("Please specify search criteria")
query = {"view": "collection"}