1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01:00

Fix bogus None check in core.vc_export_env

In case of an error, core.get_user_data returns an empty list.
None is never returned. Hence, only pop data from the returned list,
if it is non-empty.
This commit is contained in:
Marcus Huewe 2020-02-06 10:09:52 +01:00
parent d22ca55975
commit 73d880e138

View File

@ -7901,7 +7901,7 @@ def vc_export_env(apiurl, quiet=False):
if missing_tags:
user = conf.get_apiurl_usr(apiurl)
data = get_user_data(apiurl, user, *missing_tags)
if data is not None:
if data:
for tag in missing_tags:
val = data.pop(0)
if val != '-':