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
Validata
Validata UI
Commits
86b07244
Commit
86b07244
authored
Mar 04, 2021
by
Pierre Dittgen
Browse files
Explicit error message when tabular data url can't be retrieved (404)
parent
858e744b
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/views.py
View file @
86b07244
...
...
@@ -685,12 +685,18 @@ def custom_validator():
# Process URL
else
:
validation_form_url
=
compute_validation_form_url
(
schema_instance
.
request_parameters
()
)
if
not
url_param
:
flash_error
(
"Vous n'avez pas indiqué d'URL à valider"
)
return
redirect
(
compute_validation_form_url
(
schema_instance
.
request_parameters
())
)
return
validate
(
schema_instance
,
URLValidataResource
(
url_param
))
return
redirect
(
validation_form_url
)
try
:
return
validate
(
schema_instance
,
URLValidataResource
(
url_param
))
except
frictionless
.
FrictionlessException
as
ex
:
flash_error
(
ex
.
error
.
message
)
return
redirect
(
validation_form_url
)
elif
request
.
method
==
"POST"
:
...
...
Pierre Dittgen
@pdi
mentioned in issue
#88 (closed)
·
Mar 04, 2021
mentioned in issue
#88 (closed)
mentioned in issue #88
Toggle commit list
Write
Preview
Markdown
is supported
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