catch broader RequestException instead ConnectionError

This commit is contained in:
gcarq 2017-11-07 17:45:13 +01:00
parent 57e089efd3
commit 20d5628786
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def _process() -> None:
handle_trade(trade)
Trade.session.flush()
except (requests.exceptions.ConnectionError, json.JSONDecodeError) as error:
except (requests.exceptions.RequestException, json.JSONDecodeError) as error:
msg = 'Got {} in _process(), retrying in 30 seconds...'.format(error.__class__.__name__)
logger.exception(msg)
time.sleep(30)