Skip to content

Commit

Permalink
Fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
maykcaldas committed Jan 14, 2025
1 parent 5a81f71 commit da9b04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paperqa/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ def ensure_doc(cls, values: Any) -> Any:
try:
doc = DocDetails(**copy_doc_data)
values["doc"] = doc
except ValidationError as exc:
except ValidationError as e:
raise ValidationError(
f"Failed to deserialize doc data from {doc_data}."
) from exc
) from e

return values

Expand Down

0 comments on commit da9b04d

Please sign in to comment.