Update main.py
Browse files
main.py
CHANGED
@@ -403,7 +403,6 @@ class Blackbox:
|
|
403 |
except json.JSONDecodeError as je:
|
404 |
logger.error("Failed to parse search results JSON.")
|
405 |
raise je
|
406 |
-
break # Exit the retry loop if successful
|
407 |
except ClientError as ce:
|
408 |
logger.error(f"Client error occurred: {ce}. Retrying attempt {attempt + 1}/{retry_attempts}")
|
409 |
if attempt == retry_attempts - 1:
|
|
|
403 |
except json.JSONDecodeError as je:
|
404 |
logger.error("Failed to parse search results JSON.")
|
405 |
raise je
|
|
|
406 |
except ClientError as ce:
|
407 |
logger.error(f"Client error occurred: {ce}. Retrying attempt {attempt + 1}/{retry_attempts}")
|
408 |
if attempt == retry_attempts - 1:
|