Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexandre Bulté
validata-ui
Commits
2cab4c34
Commit
2cab4c34
authored
Jan 28, 2019
by
Pierre Dittgen
Browse files
Handle goodtables format exception
parent
98bf02ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/views.py
View file @
2cab4c34
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment