Skip to content

Commit

Permalink
[cli] Protect assignment when testing for install_tags
Browse files Browse the repository at this point in the history
Fixes #608
  • Loading branch information
loathingKernel authored and derrod committed Sep 28, 2023
1 parent 03b21f4 commit 013f7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legendary/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ def verify_game(self, args, print_command=True, repair_mode=False, repair_online
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())
Expand Down

0 comments on commit 013f7d4

Please sign in to comment.