diff --git a/sslyze/concurrent_scanner.py b/sslyze/concurrent_scanner.py index 43ee5776..58d068a0 100644 --- a/sslyze/concurrent_scanner.py +++ b/sslyze/concurrent_scanner.py @@ -120,7 +120,7 @@ def _check_and_create_process(self, hostname): else: # We are already using the maximum number of processes # Do not create a process and re-use a random existing hostname queue - self._hostname_queues_dict[hostname] = random.choice(self._hostname_queues_dict.values()) + self._hostname_queues_dict[hostname] = random.choice(list(self._hostname_queues_dict.values())) self._processes_dict[hostname] = [] else: