From 6d3b754c6cce99a47a4bab1978e231ff34afe445 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 28 Nov 2024 00:02:26 -0800 Subject: [PATCH] bugFix --- modules/settings.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/settings.py b/modules/settings.py index a3f1e49..12c57c9 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -141,10 +141,11 @@ wxAlertBroadcastEnabled = config['location'].getboolean('wxAlertBroadcastEnabled', False) # default False # brodcast channel for weather alerts wxAlertBroadcastChannel = config['location'].get('wxAlertBroadcastCh') - if ',' in wxAlertBroadcastChannel: - wxAlertBroadcastChannel = config['location'].get('wxAlertBroadcastCh').split(',') - else: - wxAlertBroadcastChannel = config['location'].getint('wxAlertBroadcastCh', 2) # default 2 + if wxAlertBroadcastChannel: + if ',' in wxAlertBroadcastChannel: + wxAlertBroadcastChannel = config['location'].get('wxAlertBroadcastCh').split(',') + else: + wxAlertBroadcastChannel = config['location'].getint('wxAlertBroadcastCh', 2) # default 2 # bbs bbs_enabled = config['bbs'].getboolean('enabled', False)