metar: we need to set w.pressure to None

master
mutantmonkey 2013-06-12 18:33:18 -07:00
parent caf4a464a9
commit 5eaea6a449
1 changed files with 2 additions and 0 deletions

View File

@ -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