mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
- request_interactive_review: handle 404 during get_results more gracefully
Catch exception and just print the error instead of exiting the interactive review.
This commit is contained in:
parent
ce9a6d0f46
commit
8466e49d59
@ -6903,7 +6903,12 @@ def request_interactive_review(apiurl, request, initial_cmd='', group=None,
|
||||
print('unable to get source buildstatus: no source actions defined')
|
||||
for action in src_actions:
|
||||
print('%s/%s:' % (action.src_project, action.src_package))
|
||||
print('\n'.join(get_results(apiurl, action.src_project, action.src_package)))
|
||||
try:
|
||||
print('\n'.join(get_results(apiurl, action.src_project, action.src_package)))
|
||||
except HTTPError as e:
|
||||
if e.code != 404:
|
||||
raise
|
||||
print('unable to retrieve the buildstatus: %s' % e)
|
||||
|
||||
print_request(request)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user