From bdf6b7a3e77343ccd0577f2bd3e806f73f222a20 Mon Sep 17 00:00:00 2001 From: ellbristow Date: Fri, 7 Jun 2024 16:27:42 +0200 Subject: [PATCH] Fix unusable unicode character in whistl reponse --- delivery_parcelhub_whistl/models/delivery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delivery_parcelhub_whistl/models/delivery.py b/delivery_parcelhub_whistl/models/delivery.py index 8d47722..c36b0c9 100644 --- a/delivery_parcelhub_whistl/models/delivery.py +++ b/delivery_parcelhub_whistl/models/delivery.py @@ -607,7 +607,7 @@ def whistl_tracking_state_update(self, picking): ) try: - tracking_response = ET.fromstring(response.content) + tracking_response = ET.fromstring(response.content.decode("utf8")) except Exception as e: raise ValidationError( _(