Commit 2cab4c34 authored by Pierre Dittgen's avatar Pierre Dittgen

Handle goodtables format exception

parent 98bf02ef
......@@ -364,6 +364,10 @@ def scdl_validator(val_code):
return redirect(url_for('scdl_validator', val_code=val_code))
try:
return validate(val_code, ValidataSource('url', url_param, url_param))
except tabulator.exceptions.FormatError as e:
flash_error('Erreur : Format de ressource non supporté')
log.info(e)
return redirect(url_for('scdl_validator', val_code=val_code))
except tabulator.exceptions.HTTPError as e:
flash_error('Erreur : impossible d\'accéder au fichier source en ligne')
log.info(e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment