diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-13 13:06:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 13:06:09 +0200 |
commit | 1504942836760f73e58678a24ce53520080c76eb (patch) | |
tree | d17d5020e0c14777af452800388b3a9f0e5ce8b9 | |
parent | 3f594076208027cafdd13f343131ac2d2d3b2445 (diff) | |
parent | 48722ae450d0e7ef36a2318e90be33c244edd20f (diff) | |
download | vyos-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-x | scripts/build-vyos-image | 2 |
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}') |