From 415346f458421fd1c52cab5b3dc50c1ad051fa3a Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 21 Mar 2021 20:39:16 +0000 Subject: [PATCH] Rstrip is a better solution for \x00 --- bridge_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index 4ffb2ea..47393aa 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -538,9 +538,9 @@ def options_config(): if CONFIG['SYSTEMS'][_system]['ENABLED'] == True: if 'OPTIONS' in CONFIG['SYSTEMS'][_system]: _options = {} + CONFIG['SYSTEMS'][_system]['OPTIONS'] = CONFIG['SYSTEMS'][_system]['OPTIONS'].rstrip('\x00') re.sub("\'","",CONFIG['SYSTEMS'][_system]['OPTIONS']) re.sub("\"","",CONFIG['SYSTEMS'][_system]['OPTIONS']) - re.sub("\x00","",CONFIG['SYSTEMS'][_system]['OPTIONS']) for x in CONFIG['SYSTEMS'][_system]['OPTIONS'].split(";"): try: k,v = x.split('=')