mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
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.
This commit is contained in:
parent
8c6e4798d3
commit
801def2d71
@ -229,7 +229,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}')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user