check if result exists in get_ticker (fixes #106)

This commit is contained in:
gcarq
2017-11-16 16:39:06 +01:00
parent 0bc96241d5
commit d86dcc4752
3 changed files with 19 additions and 9 deletions

View File

@@ -93,8 +93,10 @@ def _process(dynamic_whitelist: Optional[bool] = False) -> bool:
Trade.session.flush()
except (requests.exceptions.RequestException, json.JSONDecodeError) as error:
msg = 'Got {} in _process(), retrying in 30 seconds...'.format(error.__class__.__name__)
logger.warning(msg)
logger.warning(
'Got %s in _process(), retrying in 30 seconds...',
error
)
time.sleep(30)
except RuntimeError:
telegram.send_msg('*Status:* Got RuntimeError:\n```\n{traceback}```{hint}'.format(