1
0
mirror of https://github.com/bspeice/metrik synced 2024-11-23 07:38:09 -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__ __release__ = __version__

View File

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