Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions voluptuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def validate_dict(self, path, schema, data):
>>> validate({'one': 'three'})
Traceback (most recent call last):
...
InvalidList: not a valid value for dictionary value @ data['one']
InvalidList: not a valid value @ data['one']

An invalid key:

Expand Down Expand Up @@ -287,8 +287,7 @@ def validate_dict(self, path, schema, data):
if len(e.path) > len(key_path):
errors.append(e)
else:
errors.append(Invalid(e.msg + ' for dictionary value',
e.path))
errors.append(Invalid(e.msg, e.path))
break

# Key and value okay, mark any required() fields as found.
Expand Down