imLinguin / nile

Unofficial Amazon Games client
GNU General Public License v3.0
307 stars 16 forks source link

fix: Do not break uninstall when file is missing #45

Closed m3e-g closed 10 months ago

m3e-g commented 10 months ago

Currently, when file is missing from disk, uninstall operation breaks with unhandled exception and does not update the installed_games store.

Such situation can happen when we try to remove the game while it's still running (PermissionError exception). Because some of the files were already removed, user can no longer uninstall game unless he verifies it (and downloads missing files) first.

With current proposal, we gracefully handle FileNotFoundError so user can safely uninstall game in case of missing files, or any other unhandled exceptions from previous attempts.