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:
parent
1375669888
commit
4536278383
@ -1,2 +1,2 @@
|
||||
__version__ = '0.3.5'
|
||||
__version__ = '0.3.6'
|
||||
__release__ = __version__
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user