0

I'm using requests to send a post to an API with proxies however I'm trying to make the console output look clean, not spamming with errors that the proxy 'fails to connect'. Is there a way to hide errors like this one?:

HTTPSConnectionPool(host='test.com', port=443): Max retries exceeded with url: /v1/ (Caused by ProxyError('Cannot connect to proxy.', OSError(0, 'Error')))

I set a timeout for as well, nothing seems to be working and my console output is being spammed with that

Farhood ET
  • 1,432
  • 15
  • 32
technicals
  • 13
  • 4

0 Answers0