From d1e41c448cc4ef7a3b14dd4e28fa6003cf29417b Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Wed, 13 Nov 2024 13:37:24 -0400 Subject: [PATCH] Make validation output easier to read --- src/palace/manager/core/opds_schema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/palace/manager/core/opds_schema.py b/src/palace/manager/core/opds_schema.py index 8560339df..08a47a3d3 100644 --- a/src/palace/manager/core/opds_schema.py +++ b/src/palace/manager/core/opds_schema.py @@ -20,9 +20,9 @@ def validate_schema( ) -> None: try: feed_cls.model_validate_json(feed) - except ValidationError: - cls.logger().error("Validation failed for feed") - raise + except ValidationError as e: + cls.logger().exception("Validation failed for feed") + print(str(e)) class OPDS2SchemaValidation(OPDS2ImportMonitor, OPDS2SchemaValidationMixin):