Fix older hub errors

Fixes: https://pagure.io/koji/issue/1401
This commit is contained in:
Jana Cupova 2021-11-04 13:28:55 +01:00 committed by Yu Ming Zhu
parent dc2602ee91
commit 29ceea4ef0

View file

@ -3348,6 +3348,9 @@ def anon_handle_list_builds(goptions, session, args):
if e.args[0].endswith("'pattern'"):
parser.error("The hub doesn't support the 'pattern' argument, please try"
" filtering the result on your local instead.")
if e.args[0].endswith("'cgID'"):
parser.error("The hub doesn't support the 'cg' argument, please try"
" filtering the result on your local instead.")
else:
parser.error("Filter must be provided for list")
if not options.sort_key: