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()
def dbQuery(self,query='SELECT'):
self.__openDb()
self.cursor.execute(query)
rows = self.cursor.fetchall()
self.__closeDb()
try:
self.__openDb()
self.cursor.execute(query)
rows = self.cursor.fetchall()
self.__closeDb()
except sqlite3.OperationalError:
rows = None
return rows
def dbInsert(self,ts,k,v):