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