From af815d48e2594a5ffd4529a40d0e0d86a4fec146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 13 Jan 2026 20:05:34 +0100 Subject: [PATCH] Replace UNPROCESSABLE_CONTENT status by UNPROCESSABLE_ENTITY UNPROCESSABLE_CONTENT is only available since Python 3.13 Closes #14491 --- modules/edocument_peppol_peppyrus/edocument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/edocument_peppol_peppyrus/edocument.py b/modules/edocument_peppol_peppyrus/edocument.py index 446292704f..838353c22f 100644 --- a/modules/edocument_peppol_peppyrus/edocument.py +++ b/modules/edocument_peppol_peppyrus/edocument.py @@ -145,7 +145,7 @@ class PeppolService(metaclass=PoolMeta): 'Accept': 'application/json', 'X-Api-Key': self.peppyrus_api_key, }) - if response.status_code == HTTPStatus.UNPROCESSABLE_CONTENT: + if response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY: raise PeppolServiceError(response.json()) response.raise_for_status() return response.json()['id']