[cli] Protect assignment when testing for install_tags

Fixes #608
This commit is contained in:
Stelios Tsampas 2023-09-27 15:02:16 +03:00 committed by Rodney
parent 03b21f49de
commit 013f7d4bde

View file

@ -1231,7 +1231,7 @@ class LegendaryCLI:
key=lambda a: a.filename.lower())
# build list of hashes
if config_tags := self.core.lgd.config.get(args.app_name, 'install_tags', fallback=None) is not None:
if (config_tags := self.core.lgd.config.get(args.app_name, 'install_tags', fallback=None)) is not None:
install_tags = set(i.strip() for i in config_tags.split(','))
file_list = [
(f.filename, f.sha_hash.hex())