From 47fc5d0c0e7884bf6895e7e52919cf704ba5f201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Zaj=C4=85c?= Date: Mon, 10 Jun 2024 06:28:10 +0200 Subject: [PATCH] Hotfix --- artemis/module_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artemis/module_base.py b/artemis/module_base.py index 1ec8bd343..efe14ac2a 100644 --- a/artemis/module_base.py +++ b/artemis/module_base.py @@ -434,7 +434,7 @@ def _get_scan_destination(self, task: Task) -> str: cache_key = "scan-destination-" + task.uid cached_destination = self.cache.get(cache_key) if cached_destination: - return cached_destination.decode("ascii") + return cached_destination.decode("utf-8") result = None if task.headers["type"] == TaskType.NEW: @@ -473,7 +473,7 @@ def _get_scan_destination(self, task: Task) -> str: result = task.payload["host"] assert isinstance(result, str) - self.cache.set(cache_key, result.encode("ascii")) + self.cache.set(cache_key, result.encode("utf-8")) return result def _get_ip_for_locking(self, host: str) -> str: