Skip to content
Snippets Groups Projects
Commit 33359b99 authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

try to catch 'python shity dealing with sql' mode

parent b99a4ef3
No related branches found
No related tags found
No related merge requests found
Pipeline #103701 failed
......@@ -713,7 +713,12 @@ def getProgress(DBcursor, DBSchema, codeInsee, id_factor=None):
dataValues = DBcursor.fetchone()
if dataValues is None:
return 0
return 0
try:
ret = dataValues['count']
except:
return 0
return dataValues['count']
def resetProgress(DB_params, DB_schema):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment