diff --git a/statistiques/parseStats.py b/statistiques/parseStats.py index 49d13ae..3a6e23b 100755 --- a/statistiques/parseStats.py +++ b/statistiques/parseStats.py @@ -85,6 +85,8 @@ class Stats: res = self.db.dbQuery(f"""SELECT * FROM {dbName} WHERE timestamp > {self.startDate} AND timestamp < {self.endDate} ORDER by id""") consolided = {} moy_conf_by_day = 0 + if res is None: + sys.exit('Traitement en cours, base de données indisponible') for line in res: field = line[2] if field in STATS_TOT_FIELDS: