Skip to content

Commit e1e5233

Browse files
committed
🎨 Defensive check and demote log level
1 parent 1e41670 commit e1e5233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/awx_metar_supplement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def main(network):
8282
continue
8383
# Crude lookup by timestamp
8484
meat = line.split(st4, maxsplit=1)[1].strip()
85-
if meat[6] != "Z":
86-
LOG.warning("%s unparsable `%s`", st4, line)
85+
if len(meat) < 8 or meat[6] != "Z":
86+
LOG.info("%s unparsable `%s`", st4, line)
8787
continue
8888
awx[meat[:6]] = f"{line}="
8989
res = conn.execute(

0 commit comments

Comments
 (0)