From 22dc099105878f2dfc0e5a716e8de36065ad0920 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 11 Sep 2017 16:50:57 -0400 Subject: [PATCH] fix --- contrib/backends/srndv2/src/srnd/postgres.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/backends/srndv2/src/srnd/postgres.go b/contrib/backends/srndv2/src/srnd/postgres.go index 6169134..0b75385 100644 --- a/contrib/backends/srndv2/src/srnd/postgres.go +++ b/contrib/backends/srndv2/src/srnd/postgres.go @@ -754,6 +754,9 @@ func (self *PostgresDatabase) UnbanNewsgroup(group string) (err error) { func (self *PostgresDatabase) NewsgroupBanned(group string) (banned bool, err error) { var count int64 err = self.conn.QueryRow(self.stmt[NewsgroupBanned], group).Scan(&count) + if err == sql.ErrNoRows { + err = nil + } banned = count > 0 return }