From e5b66b90ba9f097d430908ed7d1b23c39013d093 Mon Sep 17 00:00:00 2001 From: agessaman Date: Fri, 2 Oct 2026 00:52:05 -0700 Subject: [PATCH] refactor(weather): log a companion lookup on a bot without a database as dev did A space bunny review (about 110,000 old-versus-new cases, two differences found) noted that the shared companion lookup returned silently when the bot had no db_manager, where dev's aurora and rain logged the AttributeError at DEBUG (and wx and gwx at WARNING). The guard is gone, so all four log it again. Unreachable in production, since the bot does not start without a database. --- modules/location.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/location.py b/modules/location.py index 909f209..f044cf4 100644 --- a/modules/location.py +++ b/modules/location.py @@ -642,8 +642,6 @@ def get_companion_lat_lon( if trace and logger is not None: logger.debug("No sender_pubkey in message for companion location lookup") return None - if not hasattr(bot, "db_manager") and not trace: - return None query = """ SELECT latitude, longitude FROM complete_contact_tracking