From 5eaea6a449048c60dc7dde90a00a39727db5868a Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Wed, 12 Jun 2013 18:33:18 -0700 Subject: [PATCH] metar: we need to set w.pressure to None --- metar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metar.py b/metar.py index d8617da..a78c798 100644 --- a/metar.py +++ b/metar.py @@ -273,6 +273,8 @@ def parse(data): w.pressure = round(float(m.group(2)) * 0.3386389) elif m: w.pressure = int(m.group(2)) + else: + w.pressure = None return w