hANSIc99/Pythonic

OHLC & Order: Catch exception when when connection is interrupted

Closed this issue · 1 comments

Exception in target_0(): <class 'requests.exceptions.ConnectionError'>
Exception in target_0(): HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v1/ping (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f372c27e810>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Exception in target_0(): <traceback object at 0x7f372c29b5f0>
Exception as e: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v1/ping (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f372c27e810>: Failed to establish a new connection: [Errno -2] Name or service not known'))
<class 'requests.exceptions.ConnectionError'>

Only affects old version