details: https://code.tryton.org/tryton/commit/439f77ae1b6a
branch: default
user: Cédric Krier <[email protected]>
date: Tue Jan 13 20:05:34 2026 +0100
description:
Replace UNPROCESSABLE_CONTENT status by UNPROCESSABLE_ENTITY
UNPROCESSABLE_CONTENT is only available since Python 3.13
Closes #14491
diffstat:
modules/edocument_peppol_peppyrus/edocument.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1a4bf1aa835e -r 439f77ae1b6a
modules/edocument_peppol_peppyrus/edocument.py
--- a/modules/edocument_peppol_peppyrus/edocument.py Tue Jan 13 15:47:25
2026 +0100
+++ b/modules/edocument_peppol_peppyrus/edocument.py Tue Jan 13 20:05:34
2026 +0100
@@ -145,7 +145,7 @@
'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']