From 2cc471e9b831bdf50ad95ec9642808c5faf5a2aa Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 7 Mar 2021 16:24:54 +0000 Subject: [PATCH] Handle variable types --- bridge_master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 352ff7b..22ce9db 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -624,11 +624,11 @@ def options_config(): logger.debug('(OPTIONS) %s - TS2_STATIC contains characters other than numbers and comma, ignoring',_system) continue - if not _options['DEFAULT_REFLECTOR'].isdigit(): + if isinstance(_options['DEFAULT_REFLECTOR'], str) and not _options['DEFAULT_REFLECTOR'].isdigit(): logger.debug('(OPTIONS) %s - DEFAULT_UA_TIMER is not an integer, ignoring',_system) continue - if not _options['DEFAULT_UA_TIMER'].isdigit(): + if isinstance(_options['DEFAULT_UA_TIMER'], str) and not _options['DEFAULT_UA_TIMER'].isdigit(): logger.debug('(OPTIONS) %s - DEFAULT_REFLECTOR is not an integer, ignoring',_system) continue