From 21810d1808da18102e299c84b5a865176c712080 Mon Sep 17 00:00:00 2001 From: Filip Valder Date: Tue, 15 Aug 2017 08:40:38 +0200 Subject: [PATCH] Fix for optional arguments in arg=value format. TypeError: 'NoneType' object is not iterable fixed. --- contrib/mbs-build | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/mbs-build b/contrib/mbs-build index 43c42e76..3090568e 100755 --- a/contrib/mbs-build +++ b/contrib/mbs-build @@ -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: