From 48722ae450d0e7ef36a2318e90be33c244edd20f Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 13 Apr 2024 12:34:35 +0200 Subject: T6173: fix TypeError: 'NoneType' object is not iterable Commit 611cfc85c531 ("T6173: validate allowed characters in ISO image name") missed the probability that version is a dict member bot empty. (cherry picked from commit 801def2d7105acc45868c361730e5be5ab4c36ea) --- scripts/build-vyos-image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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}') -- cgit v1.2.3