Fix bug in checking op25 status
This commit is contained in:
@@ -59,7 +59,7 @@ async def join_server(system_id, guild_id, channel_id):
|
|||||||
print("OP25 status:", op25_status)
|
print("OP25 status:", op25_status)
|
||||||
|
|
||||||
# Check if OP25 is stopped, if so set the selected channel, otherwise
|
# 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)
|
chn_details = await srv_api.get_channel_details(channel_id)
|
||||||
print("Channel details", chn_details)
|
print("Channel details", chn_details)
|
||||||
if not chn_details:
|
if not chn_details:
|
||||||
|
|||||||
Reference in New Issue
Block a user