Lgdnr: Check for old_igame before writing tags
This commit is contained in:
parent
9b10a48704
commit
446cbd6c67
|
@ -341,7 +341,7 @@ class LegendaryCLI(LegendaryCLIReal):
|
||||||
self.core.uninstall_tag(old_igame)
|
self.core.uninstall_tag(old_igame)
|
||||||
self.core.install_game(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.config.set(game.app_name, 'install_tags', ','.join(old_igame.install_tags))
|
||||||
self.core.lgd.save_config()
|
self.core.lgd.save_config()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue