From b0d3c56982c308aeffe2faee66dd1ca59979ccc9 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 21 Mar 2021 17:26:22 +0000 Subject: [PATCH] Remove null bytes from options line (For you OpenSpot!) --- bridge_master.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index b2aedbb..40f2ba9 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -494,7 +494,7 @@ def ident(): for _peerid in CONFIG['SYSTEMS'][system]['PEERS']: _callsign = CONFIG['SYSTEMS'][system]['PEERS'][_peerid]['CALLSIGN'].decode() if not _callsign: - logger.debug("(%s) System has no peers or no recorded callsign (%s), skipping",system,_callsign) + logger.debug("(IDENT) %s System has no peers or no recorded callsign (%s), skipping",system,_callsign) continue _slot = systems[system].STATUS[2] #If slot is idle for RX and TX @@ -540,6 +540,7 @@ def options_config(): _options = {} 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('=')