From 5059990adbdec905e84d6beb447d5c71ea271bdd Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 20 Oct 2024 17:24:22 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 22b3cd8..b516e7d 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -213,8 +213,9 @@ def handle_wxalert(message_from_id, deviceID, message): weatherAlert = getActiveWeatherAlertsDetail(str(location[0]), str(location[1])) else: weatherAlert = getWeatherAlerts(str(location[0]), str(location[1])) - - weatherAlert = weatherAlert[0] + + if NO_ALERTS not in weatherAlert: + weatherAlert = weatherAlert[0] return weatherAlert def handle_wiki(message, isDM):