From 4840efd8c8a4d8515fb018afccff3385b4974318 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 2 Aug 2024 01:11:00 -0400 Subject: [PATCH] fix scan error --- bbot/scanner/scanner.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bbot/scanner/scanner.py b/bbot/scanner/scanner.py index 18172e658..fa2abfadf 100644 --- a/bbot/scanner/scanner.py +++ b/bbot/scanner/scanner.py @@ -172,10 +172,6 @@ def __init__( self.dispatcher = dispatcher self.dispatcher.set_scan(self) - from .stats import ScanStats - - self.stats = ScanStats(self) - # scope distance self.scope_config = self.config.get("scope", {}) self.scope_search_distance = max(0, int(self.scope_config.get("search_distance", 0))) @@ -215,6 +211,10 @@ def __init__( # how often to print scan status self.status_frequency = self.config.get("status_frequency", 15) + from .stats import ScanStats + + self.stats = ScanStats(self) + self._prepped = False self._finished_init = False self._new_activity = False