Fix bug in checking op25 status

This commit is contained in:
Logan Cusano
2025-04-27 02:16:58 -04:00
parent 40565b1235
commit 386df10fe6

View File

@@ -59,7 +59,7 @@ async def join_server(system_id, guild_id, channel_id):
print("OP25 status:", op25_status)
# Check if OP25 is stopped, if so set the selected channel, otherwise
if op25_status == "stopped":
if 'status' not in op25_status or op25_status['status'] == "stopped":
chn_details = await srv_api.get_channel_details(channel_id)
print("Channel details", chn_details)
if not chn_details: