From 448c85376090c8815f1ba7c9bb0effe8db6d9e75 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 12 Aug 2023 16:57:19 +0100 Subject: [PATCH] f --- bridge_master.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 3beb9fc..35f4974 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -799,7 +799,10 @@ def bridge_reset(): if '_reset' in CONFIG['SYSTEMS'][_system] and CONFIG['SYSTEMS'][_system]['_reset']: logger.info('(BRIDGERESET) Bridge reset for %s - no peers',_system) remove_bridge_system(_system) - del(CONFIG['SYSTEMS'][_system]['_opt_key']) + try: + del(CONFIG['SYSTEMS'][_system]['_opt_key']) + except: + pass CONFIG['SYSTEMS'][_system]['_reset'] = False CONFIG['SYSTEMS'][_system]['_resetlog'] = False @@ -830,16 +833,16 @@ def options_config(): if '_opt_key' in CONFIG['SYSTEMS'][_system]: if 'KEY' not in _options: - logger.info('(OPTIONS) %s, options key set but no key in options string, skipping',_system) + logger.debug('(OPTIONS) %s, options key set but no key in options string, skipping',_system) continue elif CONFIG['SYSTEMS'][_system]['_opt_key'] != _options['KEY']: - logger.info('(OPTIONS) %s, options key set but key sent does not match, skipping',_system) + logger.debug('(OPTIONS) %s, options key set but key sent does not match, skipping',_system) continue elif 'KEY' in _options and _options['KEY']: - logger.info('(OPTIONS) %s, _opt_key not set but key sent. Setting to sent key',_system) + logger.debug('(OPTIONS) %s, _opt_key not set but key sent. Setting to sent key',_system) CONFIG['SYSTEMS'][_system]['_opt_key'] = _options['KEY'] else: - logger.info('(OPTIONS) %s, _opt_key not set and no key sent. Generate random key',_system) + logger.debug('(OPTIONS) %s, _opt_key not set and no key sent. Generate random key',_system) CONFIG['SYSTEMS'][_system]['_opt_key'] = randint(0,65535)