From 032ee2ee0edc2b721ec8af3d93f348781b5c6445 Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Wed, 18 Sep 2019 11:08:24 +0300 Subject: [PATCH] Bugfix in generator --- monkey/infection_monkey/network/network_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/network/network_scanner.py b/monkey/infection_monkey/network/network_scanner.py index a89920c72..dea7707ad 100644 --- a/monkey/infection_monkey/network/network_scanner.py +++ b/monkey/infection_monkey/network/network_scanner.py @@ -38,7 +38,7 @@ def generate_victims(net_ranges, chunk_size): chunk.append(victim) if len(chunk) == chunk_size: yield chunk - yield chunk + chunk = [] class NetworkScanner(object):