From 10101ba6188cecb6b47d692554b831802a1c1d1a Mon Sep 17 00:00:00 2001 From: Paul Warren Date: Tue, 1 Mar 2022 19:23:24 +1100 Subject: [PATCH] Give up after 2 missing data points in temperature data --- bom_rrd2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bom_rrd2.py b/bom_rrd2.py index 8354639..1e9f438 100755 --- a/bom_rrd2.py +++ b/bom_rrd2.py @@ -32,7 +32,10 @@ rows = lounge[2][::-1] try: lounge_temp = int(rows[1][0]) except TypeError: - lounge_temp = int(rows[2][0]) + try: + lounge_temp = int(rows[2][0]) + except TypeError: + lounge_temp = "N" bom_icons = { 'sunny': 'SUNNY.JPG',