try:
# DEBUG: print("DEBUG: BEFORE response[]:", type(response))
if isinstance(response, BaseException) or isinstance(response, json.decoder.JSONDecodeError):
- response = str(response)
+ response = f"response[{type(response)}]='{str(response)}'"
# DEBUG: print("DEBUG: AFTER response[]:", type(response))
if isinstance(response, str):
# DEBUG: print("DEBUG: BEFORE response[]:", type(response))
if isinstance(response, BaseException) or isinstance(response, json.decoder.JSONDecodeError):
- response = f"{type}:str(response)"
+ response = f"response[{type(response)}]='{str(response)}'"
# DEBUG: print("DEBUG: AFTER response[]:", type(response))
if isinstance(response, str):