From da9b04d6ee54fc5d4cbf34ef4c7817cbb605e49a Mon Sep 17 00:00:00 2001 From: Mayk Caldas Date: Tue, 14 Jan 2025 11:37:44 -0800 Subject: [PATCH] Fix pylint --- paperqa/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paperqa/types.py b/paperqa/types.py index 845a045f..071f8008 100644 --- a/paperqa/types.py +++ b/paperqa/types.py @@ -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