From 712df72d55301c93c4113e8d5c7c4fc0417043d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Wed, 21 Feb 2024 19:00:04 +0100 Subject: [PATCH] adapter.http: remove hardcoded encoding from error messages --- basyx/aas/adapter/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basyx/aas/adapter/http.py b/basyx/aas/adapter/http.py index cb401dfc2..d40779a6e 100644 --- a/basyx/aas/adapter/http.py +++ b/basyx/aas/adapter/http.py @@ -380,7 +380,7 @@ def to_python(self, value: str) -> model.Identifier: except binascii.Error: raise BadRequest(f"Encoded identifier {value} is invalid base64url!") except UnicodeDecodeError: - raise BadRequest(f"Encoded base64url value is not a valid utf-8 string!") + raise BadRequest(f"Encoded base64url value is not a valid {self.encoding} string!") return decoded