diff --git a/system/ui/setup.py b/system/ui/setup.py index 9c62aec105..2566ea209c 100755 --- a/system/ui/setup.py +++ b/system/ui/setup.py @@ -384,8 +384,7 @@ class Setup(Widget): gui_app.request_close() - except Exception as e: - print(e) + except Exception: error_msg = "Ensure the entered URL is valid, and the device's internet connection is good." self.download_failed(self.download_url, error_msg) @@ -394,6 +393,7 @@ class Setup(Widget): self.failed_reason = reason self.state = SetupState.DOWNLOAD_FAILED + def main(): try: gui_app.init_window("Setup", 20)