mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 05:38:43 +02: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:
@@ -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 != '-':
|
||||
|
Reference in New Issue
Block a user