Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Validata
validata-ui
Commits
6fb0e6a7
Commit
6fb0e6a7
authored
Jul 01, 2019
by
Pierre Dittgen
Committed by
Christophe Benz
Jul 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display catalog schema validation error
parent
79e5d7a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
validata_ui/views.py
validata_ui/views.py
+3
-0
No files found.
validata_ui/views.py
View file @
6fb0e6a7
...
...
@@ -13,6 +13,7 @@ from operator import itemgetter
from
pathlib
import
Path
from
urllib.parse
import
urlencode
,
urljoin
import
jsonschema
import
requests
import
tableschema
import
tabulator
...
...
@@ -453,6 +454,8 @@ def home():
err_msg
=
"problème de connexion"
elif
isinstance
(
exc
,
json
.
decoder
.
JSONDecodeError
):
err_msg
=
"format JSON incorrect"
elif
isinstance
(
exc
,
jsonschema
.
exceptions
.
ValidationError
):
err_msg
=
"le catalogue ne respecte pas le schéma de référence"
home_section
[
'err'
]
=
err_msg
else
:
home_section_catalog
=
[]
...
...
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