Handle Sicoval errors

This commit is contained in:
Lucas Verney 2019-07-12 10:31:48 +02:00
parent 6669014d0c
commit e7310e220d

View File

@ -369,6 +369,11 @@ def preprocess_seine_saint_denis(data):
def preprocess_sicoval(data): def preprocess_sicoval(data):
out = [] out = []
if 'error' in data:
logging.warning('Invalid data for Sicoval.')
return out
for item in data: for item in data:
try: try:
new_item = { new_item = {