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