From f2857394134c9f28c92b8ee15f10a1b5234311bd Mon Sep 17 00:00:00 2001 From: jrcastro2 Date: Fri, 29 Nov 2024 15:27:11 +0100 Subject: [PATCH 1/2] datastore: Fix domain fetching on None value --- invenio_accounts/datastore.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/invenio_accounts/datastore.py b/invenio_accounts/datastore.py index 98808247..5f0c2fb7 100644 --- a/invenio_accounts/datastore.py +++ b/invenio_accounts/datastore.py @@ -113,6 +113,9 @@ def find_role_by_id(self, role_id): def find_domain(self, domain_or_id): """Find a domain by value or ID.""" + if domain_or_id is None: + return None + if isinstance(domain_or_id, str): if domain_or_id.isdigit(): clause = Domain.id == int(domain_or_id) From 6d5bfe634b8df0fc36c03412d347d0b71cb87a00 Mon Sep 17 00:00:00 2001 From: jrcastro2 Date: Fri, 29 Nov 2024 15:30:16 +0100 Subject: [PATCH 2/2] release: v5.1.7 --- CHANGES.rst | 4 ++++ invenio_accounts/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 5770f251..e11eab6a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,10 @@ Changes ======= +Version v5.1.7 (released 2024-11-29) + +- datastore: Fix domain fetching on None value + Version v5.1.6 (released 2024-11-28) - setup: pin dependencies diff --git a/invenio_accounts/__init__.py b/invenio_accounts/__init__.py index aeb40513..3fb2c006 100644 --- a/invenio_accounts/__init__.py +++ b/invenio_accounts/__init__.py @@ -55,7 +55,7 @@ from .ext import InvenioAccounts, InvenioAccountsREST, InvenioAccountsUI from .proxies import current_accounts -__version__ = "5.1.6" +__version__ = "5.1.5" __all__ = ( "__version__",