1
0
mirror of https://github.com/bspeice/metrik synced 2024-12-24 22:48:10 -05:00

Widen the search for bad quotes

This commit is contained in:
Bradlee Speice 2016-08-25 17:56:03 -04:00
parent 1375669888
commit 4536278383
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
__version__ = '0.3.5'
__version__ = '0.3.6'
__release__ = __version__

View File

@ -59,8 +59,8 @@ class Tradeking1mTimesales(MongoCreateTask):
quotes = json_data['response']['quotes']['quote']
def format_quote(quote):
if quote == '':
logging.warning('Empty quote for symbol {}'.format(symbol))
if type(quote) != dict:
logging.warning('Bad quote for symbol {}: {}'.format(symbol, quote))
return {}
else:
return {