Skip to content

Commit

Permalink
prevent a null timestamp in ASOS daily compute
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed May 29, 2016
1 parent fe43a4a commit 08f3009
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/asos/compute_daily.py
Expand Up @@ -32,6 +32,9 @@ def do(ts):
wdata = dict()
rhdata = dict()
for row in cursor:
if row[5] is None:
print("asos/compute_daily.py %s has none timestamp!" % (row[0],))
continue
if row[5].strftime("%m%d") != ts.strftime("%m%d"):
continue
station = "%s|%s|%s" % (row[0], row[1], row[2])
Expand Down

0 comments on commit 08f3009

Please sign in to comment.