From a734b3935fb0cfe72986ab3ce9286313b787c411 Mon Sep 17 00:00:00 2001 From: Computerboer Date: Mon, 9 Dec 2024 23:39:08 +0100 Subject: [PATCH] try fix non ascii errors --- utils/helperutils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/helperutils.py b/utils/helperutils.py index c1413ed..33ed66b 100644 --- a/utils/helperutils.py +++ b/utils/helperutils.py @@ -1,4 +1,6 @@ from datetime import datetime, timedelta def log(value): + value = value.encode('ascii', errors='ignore') + value = value.decode() print(str(datetime.now()) + ' ' + value)