-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disable / avoid urllib3 error output[enhancement] #152
Comments
All When this happens, the In your case the retry list was exhausted, https://github.com/s4w3d0ff/python-poloniex/blob/master/poloniex/__init__.py#L135-L156 I can create a new Exception (something like |
Either of those would work for me. Would catching the RetryException avoid that long output? Because if it doesn't, then I would prefer the debug option |
This should help but you are still going to see a huge traceback if you don't capture the
import logging
from poloniex import Poloniex, RetryException
logging.basicConfig(level=logging.INFO)
polo = Poloniex()
try:
polo.returnTicker()
except RetryException:
print('Retry Max Reached')
|
I wrote a script that grabs information about tickers on my computer at specific times. If I don't have wifi, there is a long error script from it, that I would like to disable. I can only catch your error, not any
urllib3 ones
. Output:I finally caught this error after all that was outputted:
How can I avoid / silence this?
The text was updated successfully, but these errors were encountered: