diff --git a/grinder/core.py b/grinder/core.py index 7f8d837..9f04872 100644 --- a/grinder/core.py +++ b/grinder/core.py @@ -1030,6 +1030,10 @@ def check_ip(address: str, network: str) -> bool: ) results_count = len(results_by_query) if results_by_query else None + + if results_count is None: + return + self.db.add_masscan_scan_data( query=query, results_count=results_count, results=results_by_query )