From 5478f726e881be8fcd091a8be77f484fcbbf1e98 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 13 Oct 2022 09:44:51 +0200 Subject: [PATCH] rq list: Fix traceback when there's no search criteria --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index a738a35d..d140b74b 100644 --- a/osc/core.py +++ b/osc/core.py @@ -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"}