Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Jun 10, 2024
1 parent 0225fe6 commit 47fc5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artemis/module_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 47fc5d0

Please sign in to comment.