Fix for optional arguments in arg=value format. TypeError: 'NoneType' object is not iterable fixed.

This commit is contained in:
Filip Valder
2017-08-15 08:40:38 +02:00
parent 60eac3605b
commit 21810d1808

View File

@@ -260,6 +260,7 @@ def submit_module_build(scm_url, branch, server, id_provider, pyrpkg, verify=Tru
logging.info("Submitting module build %s", scm_url)
body = {'scmurl': scm_url, 'branch': branch}
optional = optional if optional else []
try:
optional_dict = {y[0]: y[1] for y in [x.split("=", 1) for x in optional]}
except IndexError: