You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
I'm using this API from another script and I've been dealing with the following error:
("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer'))
I tracked it down to the enterprise LiveHunt function I was using which was catching a requests.exceptions.RequestException, printing the exception and then calling exit(1) which left my script hanging. This is the case for every function that wraps an API endpoint.
I recommend instead to just raise the RequestException or wrap it in some custom exception and let the calling code deal with it.
I'm using this API from another script and I've been dealing with the following error:
("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer'))I tracked it down to the
enterprise LiveHuntfunction I was using which was catching arequests.exceptions.RequestException, printing the exception and then callingexit(1)which left my script hanging. This is the case for every function that wraps an API endpoint.I recommend instead to just raise the
RequestExceptionor wrap it in some custom exception and let the calling code deal with it.