[core] Catch FileNotFoundError when removing synced EGL manifest

This commit is contained in:
derrod 2022-01-18 10:16:06 +01:00
parent 3bc819e567
commit 180692195f

View file

@ -1749,6 +1749,9 @@ class LegendaryCore:
self.egl.delete_manifest(igame.app_name)
except ValueError as e:
self.log.warning(f'Deleting EGL manifest failed: {e!r}')
except FileNotFoundError:
self.log.warning(f'EGL manifest was already deleted, in case you uninstalled the Epic Games Launcher'
f' please disable and unlink EGL Sync.')
if delete_files:
delete_folder(os.path.join(igame.install_path, '.egstore'))