more work on coverage

This commit is contained in:
Bastien Gérard
2019-05-14 21:46:57 +02:00
parent 00d2fd685a
commit c82f0c937d
8 changed files with 123 additions and 4 deletions

View File

@@ -110,9 +110,6 @@ class ValidationError(AssertionError):
def build_dict(source):
errors_dict = {}
if not source:
return errors_dict
if isinstance(source, dict):
for field_name, error in iteritems(source):
errors_dict[field_name] = build_dict(error)