mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-03 15:33:14 +02:00
tupleAlert!
https://github.com/SpudGunMan/meshing-around/issues/324 patching only the tuple unwrap so plain string responses stay intact. thanks dude! Co-Authored-By: wh6gxz nurse dude <shawnmfarley@gmail.com>
This commit is contained in:
+1
-1
@@ -481,7 +481,7 @@ def handle_wxalert(message_from_id, deviceID, message):
|
||||
else:
|
||||
weatherAlert = getWeatherAlertsNOAA(str(location[0]), str(location[1]))
|
||||
|
||||
if my_settings.NO_ALERTS not in weatherAlert:
|
||||
if isinstance(weatherAlert, tuple):
|
||||
weatherAlert = weatherAlert[0]
|
||||
return weatherAlert
|
||||
|
||||
|
||||
Reference in New Issue
Block a user