From 9a4401082c5aa33f793371c802a328197b7dd9f7 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Tue, 27 Dec 2022 11:33:16 +0100 Subject: [PATCH] catching explorer type error --- tnc/explorer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tnc/explorer.py b/tnc/explorer.py index f84b69f5..4d82d8ad 100644 --- a/tnc/explorer.py +++ b/tnc/explorer.py @@ -49,7 +49,10 @@ class explorer(): try: callsign = str(i[0], "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}) except Exception as e: log.debug("[EXPLORER] not publishing station", e=e)