Poloniex Exceptions Handler #210
Replies: 1 comment
-
What exception are you trying to handle? This wrapper handles a select few exceptions internally. All the exceptions are handled in the _handleReturned method and _retry decorator. If a If an error status code is returned from poloniex, If poloniex returns something other than json data the Sometimes Poloniex returns an 'error' field within the json data. This wrapper looks for "Nonce must be greater", attempts to update the nonce and raises a Any other message in the 'error' field is captured and raised as a The only other exception this wrapper should raise is a Most errors returned will be logged by the import logging
logging.basicConfig()
poloniex.logger.setLevel(logging.DEBUG) Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to handle poloniex exceptions but in https://docs.poloniex.com/ can't find anything about it.
Is there another doc should I see?
Beta Was this translation helpful? Give feedback.
All reactions