From 6e6968c37aef59772248de8602374b4831202854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lidwin?= Date: Sat, 25 May 2024 16:29:36 +0200 Subject: [PATCH] cli: avoid crashing when sdk update throws an exception --- nile/cli.py | 6 +++++- nile/utils/launch.py | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nile/cli.py b/nile/cli.py index c7a03b2..9ace75c 100755 --- a/nile/cli.py +++ b/nile/cli.py @@ -29,7 +29,11 @@ def __init__( self.unknown_arguments = unknown_arguments self.self_update = self_update.SelfUpdateHandler(self.session, self.library_manager) - self.self_update.get_sdk() + try: + self.self_update.get_sdk() + except Exception: + self.logger.warning("There was an error getting sdk") + self.__migrate_old_ids() # Function that migrates installed and manifests from old id to product.id diff --git a/nile/utils/launch.py b/nile/utils/launch.py index 1f2eaa6..12b5171 100644 --- a/nile/utils/launch.py +++ b/nile/utils/launch.py @@ -148,7 +148,6 @@ def start(self, game_path): 'AMAZON_GAMES_FUEL_DISPLAY_NAME': display_name }) - print(self.env) command = list() if self.wrapper: