Skip to content

Commit

Permalink
Make validation output easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Nov 13, 2024
1 parent dc9688c commit d1e41c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/palace/manager/core/opds_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d1e41c4

Please sign in to comment.