diff --git a/statistiques/parseStats_ng.py b/statistiques/parseStats_ng.py index 8f3803d..b281a5a 100755 --- a/statistiques/parseStats_ng.py +++ b/statistiques/parseStats_ng.py @@ -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):