Fix stack trace

This commit is contained in:
Simon 2021-09-12 18:02:40 +01:00
parent 2e5c8c82e9
commit 01dbdf9d1e

View File

@ -595,6 +595,7 @@ def ident():
continue
_callsign = False
for _peerid in CONFIG['SYSTEMS'][system]['PEERS']:
if CONFIG['SYSTEMS'][system]['PEERS'][_peerid]['CALLSIGN']:
_callsign = CONFIG['SYSTEMS'][system]['PEERS'][_peerid]['CALLSIGN'].decode()
if not _callsign:
logger.debug("(IDENT) %s System has no peers or no recorded callsign (%s), skipping",system,_callsign)