diff --git a/gramps/plugins/database/dbapi_support/postgresql.py b/gramps/plugins/database/dbapi_support/postgresql.py index 25f3415ed..e43635978 100644 --- a/gramps/plugins/database/dbapi_support/postgresql.py +++ b/gramps/plugins/database/dbapi_support/postgresql.py @@ -57,7 +57,10 @@ class Postgresql(object): raise def fetchone(self): - return self.cursor.fetchone() + try: + return self.cursor.fetchone() + except: + return None def fetchall(self): return self.cursor.fetchall()