# HG changeset patch # User Tom Gottfried # Date 1557997219 -7200 # Node ID 7ae1892773a2cf072ed174655353405cf221267f # Parent c1c85e70a3685aef333a623d67fc7f07565ef439 Avoid trying to insert explicit missing values received from NtS diff -r c1c85e70a368 -r 7ae1892773a2 pkg/imports/gm.go --- a/pkg/imports/gm.go Thu May 16 10:43:42 2019 +0200 +++ b/pkg/imports/gm.go Thu May 16 11:00:19 2019 +0200 @@ -348,6 +348,11 @@ newP++ } } else { + if measure.Value == nil { + feedback.Info("Missing value at %s. Ignored", + measure.Measuredate.Format(time.RFC3339)) + continue + } err = insertGMStmt.QueryRowContext( ctx, currIsrs.CountryCode,