1
0
Fork 0
mirror of synced 2024-05-24 14:29:58 +12:00

Lgdnr: Check for old_igame before writing tags

This commit is contained in:
loathingKernel 2024-01-18 16:25:56 +02:00
parent 9b10a48704
commit 446cbd6c67

View file

@ -341,7 +341,7 @@ class LegendaryCLI(LegendaryCLIReal):
self.core.uninstall_tag(old_igame)
self.core.install_game(old_igame)
if old_igame.install_tags:
if old_igame and old_igame.install_tags:
self.core.lgd.config.set(game.app_name, 'install_tags', ','.join(old_igame.install_tags))
self.core.lgd.save_config()