config test

This commit is contained in:
David 2022-12-19 14:08:02 +01:00
parent f69407305a
commit c9d2c365d5

View File

@ -133,10 +133,13 @@ class SQLite:
self.conn.close() self.conn.close()
def dbQuery(self,query='SELECT'): def dbQuery(self,query='SELECT'):
self.__openDb() try:
self.cursor.execute(query) self.__openDb()
rows = self.cursor.fetchall() self.cursor.execute(query)
self.__closeDb() rows = self.cursor.fetchall()
self.__closeDb()
except sqlite3.OperationalError:
rows = None
return rows return rows
def dbInsert(self,ts,k,v): def dbInsert(self,ts,k,v):