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:
parent
77beee1d4a
commit
5478f726e8
@ -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"}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user