From 013f7d4bde53447739bf4d65f93cff828434b44d Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Wed, 27 Sep 2023 15:02:16 +0300 Subject: [PATCH] [cli] Protect assignment when testing for `install_tags` Fixes #608 --- legendary/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index d287a21..ca3cce9 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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())