Skip to content

Commit

Permalink
Code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yalef committed May 17, 2024
1 parent 531aa50 commit 5b112ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import_export_extensions/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ def validation_error(self, value: ValidationError) -> None:
nested `ValidationError` instances.
"""
result = collections.defaultdict(list)
if not hasattr(value, "message_dict"):
self._validation_error = value
return
result = collections.defaultdict(list)
for field, error_messages in value.message_dict.items():
validation_errors = [
ValidationError(message=message, code="invalid")
Expand Down

0 comments on commit 5b112ef

Please sign in to comment.