ConnTimeout
ConnTimeout
Parameters
Examples
Historical usage (now deprecated):
try:
# Long-running API call
pass
except ConnTimeout as e:
print(f”Request timed out: {e.message}”)
# Retry with longer timeout or check networkmessage : str = 'Request timed out while trying to reach endpoint'
Last updated
Was this helpful?