Browse Source

Handle Sicoval errors

Phyks (Lucas Verney) 8 months ago
parent
commit
e7310e220d
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      scripts/opendata/works.py

+ 5
- 0
scripts/opendata/works.py View File

@@ -369,6 +369,11 @@ def preprocess_seine_saint_denis(data):
369 369
 
370 370
 def preprocess_sicoval(data):
371 371
     out = []
372
+
373
+    if 'error' in data:
374
+        logging.warning('Invalid data for Sicoval.')
375
+        return out
376
+
372 377
     for item in data:
373 378
         try:
374 379
             new_item = {