From 4a9279dc85765bbc7e9ed4f0428ab226a17388d0 Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Wed, 13 Nov 2024 13:58:44 -0400 Subject: [PATCH] Fix tests --- src/palace/manager/core/metadata_layer.py | 2 +- src/palace/manager/core/opds_schema.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/palace/manager/core/metadata_layer.py b/src/palace/manager/core/metadata_layer.py index c9b9ca7db..b42285dfe 100644 --- a/src/palace/manager/core/metadata_layer.py +++ b/src/palace/manager/core/metadata_layer.py @@ -540,7 +540,7 @@ def __init__( self.terms_concurrency = terms_concurrency self.content_types = content_types - def add_to_pool(self, db: Session, pool: LicensePool): + def add_to_pool(self, db: Session, pool: LicensePool) -> License: license_obj, _ = get_one_or_create( db, License, diff --git a/src/palace/manager/core/opds_schema.py b/src/palace/manager/core/opds_schema.py index 08a47a3d3..a1d6abd8f 100644 --- a/src/palace/manager/core/opds_schema.py +++ b/src/palace/manager/core/opds_schema.py @@ -21,8 +21,8 @@ def validate_schema( try: feed_cls.model_validate_json(feed) except ValidationError as e: - cls.logger().exception("Validation failed for feed") print(str(e)) + raise class OPDS2SchemaValidation(OPDS2ImportMonitor, OPDS2SchemaValidationMixin):