fix&refactor: improve error handling in download process and enhance start_emulator method signature

This commit is contained in:
adlsdztony
2025-06-06 09:08:14 +00:00
parent 8b6ff51ebb
commit 71e9a1ead8
3 changed files with 4 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ class SetupController:
logger.error(
f"Failed to download {url} caused by {e}. Retrying... ({max_retries - i - 1} attempts left)")
if not downloaded:
raise requests.RequestException(f"Failed to download {url}. No retries left. Error: {e}")
raise requests.RequestException(f"Failed to download {url}. No retries left.")
form = MultipartEncoder({
"file_path": path,