From 03c846b5b9b3ad40d6f814915578ce1f255e7d28 Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Wed, 8 Nov 2023 10:41:48 -0500 Subject: [PATCH] fixed async bug in passivetotal abort_if() --- bbot/modules/passivetotal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbot/modules/passivetotal.py b/bbot/modules/passivetotal.py index 83ebd1d7a..ba619aff7 100644 --- a/bbot/modules/passivetotal.py +++ b/bbot/modules/passivetotal.py @@ -24,9 +24,9 @@ async def ping(self): used = j["user"]["counts"]["search_api"] assert used < limit, "No quota remaining" - def abort_if(self, event): + async def abort_if(self, event): # RiskIQ is famous for their junk data - return super().abort_if(event) or "unresolved" in event.tags + return await super().abort_if(event) or "unresolved" in event.tags async def request_url(self, query): url = f"{self.base_url}/enrichment/subdomains?query={self.helpers.quote(query)}"