diff --git a/scripts/opendata/works.py b/scripts/opendata/works.py index 731e685..0e9f85c 100755 --- a/scripts/opendata/works.py +++ b/scripts/opendata/works.py @@ -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 = {