1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-24 03:02:12 +01:00

Fix check for empty details

This commit is contained in:
Andreas Schwab 2022-04-28 15:33:58 +02:00
parent f70b41ce32
commit e0168046a1

View File

@ -5868,7 +5868,7 @@ def get_results(apiurl, project, package, verbose=False, printJoin='', *args, **
if len(l) != 2 or l[1] not in multibuild_packages:
continue
res['status'] = res['code']
if verbose and res['details'] != '':
if verbose and res['details'] is not None:
if res['code'] in ('unresolvable', 'expansion error'):
lines = res['details'].split(',')
res['status'] += ': \n ' + '\n '.join(lines)