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 Core
Commits
ecef1881
Commit
ecef1881
authored
Dec 14, 2018
by
Pierre Dittgen
Browse files
Fix KeyError
parent
ccfc5d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_core/__init__.py
View file @
ecef1881
...
...
@@ -210,7 +210,7 @@ class Validator:
options
=
{
**
options
,
"custom_loaders"
:
loaders
.
custom_loaders
}
report
=
inspector
.
inspect
(
source
=
source
,
schema
=
schema_descriptor
,
**
options
)
if
report
[
'tables'
][
0
]
[
'format'
]
==
"csv"
and
not
any
(
if
report
[
'tables'
][
0
]
.
get
(
'format'
)
==
"csv"
and
not
any
(
get_in
([
'errors'
,
err
[
'code'
],
'type'
],
spec
,
default
=
None
)
==
'source'
for
err
in
report
[
'tables'
][
0
][
'errors'
]
):
...
...
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