From 4b741e45c310b8cc571ec4a7c1e11986c7ef15ed Mon Sep 17 00:00:00 2001 From: Austin Graham Date: Sun, 14 Jul 2024 20:34:06 -0700 Subject: [PATCH] fix linting error --- tests/test_schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_schema.py b/tests/test_schema.py index c39a0180..fb51e0dc 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -226,5 +226,5 @@ class ValidateAssignmentSchema(Schema): assert schema_inst.str_var == "reassigned_value" try: schema_inst.str_var = 5 - except ValidationError: - raise AssertionError() + except ValidationError as ve: + raise AssertionError() from ve