Skip to content

Commit

Permalink
gdax more fixes to error handling ccxt#427
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Oct 31, 2017
1 parent d26609c commit 25ff7a5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,6 @@ def fetch(self, url, method='GET', headers=None, body=None):
except ssl.SSLError as e:
self.raise_error(ExchangeNotAvailable, url, method, e)
except _urllib.HTTPError as e:
print(str(e))

# if type(error) is _urllib.HTTPError:
# details = ' '.join([
# str(error.code),
# error.msg,
# error.read().decode('utf-8'),
# details,
# ])

self.handle_errors(e.code, e.reason, url, method, None, e.read().decode('utf-8'))
self.handle_rest_errors(e, e.code, text, url, method)
self.raise_error(ExchangeError, url, method, e, text if text else None)
Expand Down

0 comments on commit 25ff7a5

Please sign in to comment.