From 5000f8130fab77a85b698ef2cebb3f904b6e284e Mon Sep 17 00:00:00 2001 From: bashrc Date: Mon, 16 Feb 2026 12:37:02 +0000 Subject: [PATCH] Check if nickname exists --- crawlers.py | 3 ++- daemon_utils.py | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/crawlers.py b/crawlers.py index 8b1174e5c..212063d34 100644 --- a/crawlers.py +++ b/crawlers.py @@ -166,7 +166,8 @@ def blocked_user_agent(calling_domain: str, agent_str: str, 'meta-externalfetcher', 'meta-webindexer', 'aiscraper', 'openai', 'panscient', 'phindbot', 'qualifiedbot', 'quillbot', 'sbIntuitionsbot', 'semrushbot', 'shapbot', 'terracotta', - 'velenpublicwebcrawler', 'wpbot', 'yak' + 'velenpublicwebcrawler', 'wpbot', 'yak', 'amzn-', 'azureai', + 'kagi-fetcher' ) for bot_str in llm_bot_strings: if bot_str in agent_str_lower: diff --git a/daemon_utils.py b/daemon_utils.py index ab4de7357..a291c1c3b 100644 --- a/daemon_utils.py +++ b/daemon_utils.py @@ -88,8 +88,11 @@ def post_to_outbox(self, message_json: {}, version: str, return False if not is_online(): - print('WARN: ' + post_to_nickname + - ' cannot send post because not online') + if post_to_nickname: + print('WARN: ' + post_to_nickname + + ' cannot send post because not online') + else: + print('WARN: cannot send post because not online') return False city = self.server.city