ff
This commit is contained in:
@@ -1156,7 +1156,7 @@ class AsyncHTTPClient:
|
||||
if 400 <= e.response.status_code < 500:
|
||||
try:
|
||||
response_text = e.response.text[:500]
|
||||
except:
|
||||
except Exception:
|
||||
response_text = "<unable to read response>"
|
||||
logger.error(
|
||||
f"HTTP {e.response.status_code} from {url}: {response_text}"
|
||||
|
||||
Reference in New Issue
Block a user