diff --git a/bbot/modules/baddns_direct.py b/bbot/modules/baddns_direct.py index f8881dedb..2aaaebf6f 100644 --- a/bbot/modules/baddns_direct.py +++ b/bbot/modules/baddns_direct.py @@ -49,7 +49,7 @@ async def handle_event(self, event): "direct_mode": True, } - CNAME_direct_instance = CNAME_direct_module(event.host, **kwargs) + CNAME_direct_instance = CNAME_direct_module(str(event.host), **kwargs) if await CNAME_direct_instance.dispatch(): results = CNAME_direct_instance.analyze() if results and len(results) > 0: @@ -78,7 +78,7 @@ async def filter_event(self, event): if event.type == "URL": if event.scope_distance > 0: self.debug( - f"Rejecting {event.host} due to not being in scope (scope distance: {str(event.scope_distance)})" + f"Rejecting {event.host} due to not being in scope (scope distance: {event.scope_distance})" ) return False if "cdn-cloudflare" not in event.tags: