From 255acb257a35533e78b0eb1aed85704c386e4e0a Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer <35225576+afuetterer@users.noreply.github.com> Date: Thu, 25 Apr 2024 12:36:07 +0200 Subject: [PATCH] fix(exceptions): rename nometadataformat to nometadataformats (#349) Fixes #346 --- src/oaipmh_scythe/__init__.py | 4 ++-- src/oaipmh_scythe/exceptions.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/oaipmh_scythe/__init__.py b/src/oaipmh_scythe/__init__.py index 3a0b790..cc2d213 100644 --- a/src/oaipmh_scythe/__init__.py +++ b/src/oaipmh_scythe/__init__.py @@ -13,7 +13,7 @@ CannotDisseminateFormat, GeneralOAIPMHError, IdDoesNotExist, - NoMetadataFormat, + NoMetadataFormats, NoRecordsMatch, NoSetHierarchy, OAIPMHException, @@ -27,7 +27,7 @@ "CannotDisseminateFormat", "GeneralOAIPMHError", "IdDoesNotExist", - "NoMetadataFormat", + "NoMetadataFormats", "NoRecordsMatch", "NoSetHierarchy", "OAIPMHException", diff --git a/src/oaipmh_scythe/exceptions.py b/src/oaipmh_scythe/exceptions.py index bf8faba..e6251b0 100644 --- a/src/oaipmh_scythe/exceptions.py +++ b/src/oaipmh_scythe/exceptions.py @@ -78,7 +78,7 @@ class NoSetHierarchy(OAIPMHException): """ -class NoMetadataFormat(OAIPMHException): +class NoMetadataFormats(OAIPMHException): """Exception raised when there are no available metadata formats for the specified item. Indicates a lack of metadata formats that can be disseminated for the requested item.