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.
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.