summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-13 13:06:09 +0200
committerGitHub <noreply@github.com>2024-04-13 13:06:09 +0200
commit1504942836760f73e58678a24ce53520080c76eb (patch)
treed17d5020e0c14777af452800388b3a9f0e5ce8b9
parent3f594076208027cafdd13f343131ac2d2d3b2445 (diff)
parent48722ae450d0e7ef36a2318e90be33c244edd20f (diff)
downloadvyos-build-1504942836760f73e58678a24ce53520080c76eb.tar.gz
vyos-build-1504942836760f73e58678a24ce53520080c76eb.zip
Merge pull request #566 from vyos/mergify/bp/sagitta/pr-565
T6173: fix TypeError: 'NoneType' object is not iterable (backport #565)
-rwxr-xr-xscripts/build-vyos-image2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image
index 716a4cde..141da5e2 100755
--- a/scripts/build-vyos-image
+++ b/scripts/build-vyos-image
@@ -207,7 +207,7 @@ if __name__ == "__main__":
sys.exit(1)
# Validate characters in version name
- if 'version' in args:
+ if 'version' in args and args['version'] != None:
allowed = string.ascii_letters + string.digits + '.' + '-' + '+'
if not set(args['version']) <= set(allowed):
print(f'Version contained illegal character(s), allowed: {allowed}')