Cleaned up some chattiness in output.

This commit is contained in:
Christopher Smith 2021-04-01 04:25:09 -05:00
parent 964efba308
commit a77161399d

View file

@ -151,7 +151,6 @@ def getSSID(DID):
#If we have a Devices section, the SSID list is static. #If we have a Devices section, the SSID list is static.
if DID not in SSIDList: if DID not in SSIDList:
if conf.has_section('Devices'): if conf.has_section('Devices'):
print("No device mapping")
return None return None
SSIDList[DID] = ''.join([Call,"-",str(SSNum)]) SSIDList[DID] = ''.join([Call,"-",str(SSNum)])
SSNum = SSNum + 1 SSNum = SSNum + 1
@ -228,7 +227,7 @@ def getEvents():
try: try:
KML = http.open(conf['inReach']['URL']).read() KML = http.open(conf['inReach']['URL']).read()
except Exception as e: except Exception as e:
print(''.join(["Error reading URL: ", conf['inReach']['URL']])) print("Error reading URL: " + conf['inReach']['URL'])
return None return None
try: try:
data = xml.dom.minidom.parseString(KML).documentElement data = xml.dom.minidom.parseString(KML).documentElement