mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
catching explorer type error
This commit is contained in:
parent
c78fff4db1
commit
9a4401082c
|
@ -49,7 +49,10 @@ class explorer():
|
||||||
try:
|
try:
|
||||||
callsign = str(i[0], "UTF-8")
|
callsign = str(i[0], "UTF-8")
|
||||||
grid = str(i[1], "UTF-8")
|
grid = str(i[1], "UTF-8")
|
||||||
snr = i[4].split("/")[1]
|
try:
|
||||||
|
snr = i[4].split("/")[1]
|
||||||
|
except AttributeError:
|
||||||
|
snr = str(i[4])
|
||||||
station_data["lastheard"].append({"callsign": callsign, "grid": grid, "snr": snr})
|
station_data["lastheard"].append({"callsign": callsign, "grid": grid, "snr": snr})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.debug("[EXPLORER] not publishing station", e=e)
|
log.debug("[EXPLORER] not publishing station", e=e)
|
||||||
|
|
Loading…
Reference in a new issue