From d97f1332d6e661f953bb267d0abd8c408a4d8d6a Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 12 Sep 2017 10:16:55 -0400 Subject: [PATCH] catch error --- contrib/backends/srndv2/src/srnd/postgres.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/backends/srndv2/src/srnd/postgres.go b/contrib/backends/srndv2/src/srnd/postgres.go index 5605be3..6240ae0 100644 --- a/contrib/backends/srndv2/src/srnd/postgres.go +++ b/contrib/backends/srndv2/src/srnd/postgres.go @@ -1625,11 +1625,17 @@ func (self *PostgresDatabase) GetLastAndFirstForGroup(group string) (last, first func (self *PostgresDatabase) GetMessageIDForNNTPID(group string, id int64) (msgid string, err error) { err = self.conn.QueryRow(self.stmt[GetMessageIDForNNTPID], group, id).Scan(&msgid) + if err == sql.ErrNoRows { + err = nil + } return } func (self *PostgresDatabase) GetNNTPIDForMessageID(group, msgid string) (id int64, err error) { err = self.conn.QueryRow(self.stmt[GetNNTPIDForMessageID], group, msgid).Scan(&id) + if err == sql.ErrNoRows { + err = nil + } return }