Handle Sicoval errors
This commit is contained in:
parent
6669014d0c
commit
e7310e220d
@ -369,6 +369,11 @@ def preprocess_seine_saint_denis(data):
|
||||
|
||||
def preprocess_sicoval(data):
|
||||
out = []
|
||||
|
||||
if 'error' in data:
|
||||
logging.warning('Invalid data for Sicoval.')
|
||||
return out
|
||||
|
||||
for item in data:
|
||||
try:
|
||||
new_item = {
|
||||
|
Loading…
Reference in New Issue
Block a user