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):