[core] Fix egl_uninstall missing exception handling

This commit is contained in:
derrod 2020-05-30 00:17:06 +02:00
parent 9231df9d44
commit 9b545a82a8
2 changed files with 6 additions and 3 deletions

View file

@ -17,10 +17,10 @@ If you do please [create an issue on GitHub](https://github.com/derrod/legendary
- Launching games with online authentication (for multiplayer/DRM) - Launching games with online authentication (for multiplayer/DRM)
- Syncing cloud saves (compatible with EGL) - Syncing cloud saves (compatible with EGL)
- Running games with WINE on Linux - Running games with WINE on Linux
- Importing/Exporting installed games from/to the Epic Games Launcher
**Planned:** **Planned:**
- Simple GUI for managing/launching games - Simple GUI for managing/launching games
- Importing/Exporting installed games from/to the Epic Games Launcher
- Better interfaces for other developers to use Legendary in their projects - Better interfaces for other developers to use Legendary in their projects
- Lots and lots of bug fixes, optimizations, and refactoring... - Lots and lots of bug fixes, optimizations, and refactoring...
@ -113,7 +113,7 @@ $ legendary launch Anemone
Importing a previously installed game Importing a previously installed game
```` ````
$ legendary import Anemone /mnt/games/Epic/WorldOfGoo $ legendary import-game Anemone /mnt/games/Epic/WorldOfGoo
```` ````
**Note:** Importing will require a full verification so Legendary can correctly update the game later. **Note:** Importing will require a full verification so Legendary can correctly update the game later.
@ -360,6 +360,9 @@ max_memory = 1024
install_dir = /mnt/tank/games install_dir = /mnt/tank/games
; locale override, must be in RFC 1766 format (e.g. "en-US") ; locale override, must be in RFC 1766 format (e.g. "en-US")
locale = en-US locale = en-US
; whether or not syncing with egl is enabled
egl_sync = false
egl_programdata = /home/user/Games/epic-games-store/drive_c/...
; default settings to use (currently limited to WINE executable) ; default settings to use (currently limited to WINE executable)
[default] [default]

View file

@ -931,7 +931,7 @@ class LegendaryCore:
def egl_uninstall(self, igame: InstalledGame, delete_files=True): def egl_uninstall(self, igame: InstalledGame, delete_files=True):
try: try:
self.egl.delete_manifest(igame.app_name) self.egl.delete_manifest(igame.app_name)
except ValueError: except ValueError as e:
self.log.warning(f'Deleting EGL manifest failed: {e!r}') self.log.warning(f'Deleting EGL manifest failed: {e!r}')
if delete_files: if delete_files: