X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/94d0e2427a848e8227ff40f112440a866b6bffbe..5fbd64ffbcf2259aed83351dcf00ee47a75ff931:/src/sercom/util.py?ds=sidebyside diff --git a/src/sercom/util.py b/src/sercom/util.py index 3f4aa40..359f6b3 100644 --- a/src/sercom/util.py +++ b/src/sercom/util.py @@ -38,7 +38,8 @@ def init(tipo): # Seteo umask para que el grupo pueda leer os.umask(00027) # Conexión a la DB - conn = sqlobject.connectionForURI(conf.get('dbo', 'database')) + conn = sqlobject.connectionForURI(conf.get('dbo', 'database') + + '?timeout=5000') # Si está lockeada espera 5seg antes de tirar error # Cargo config del logger log = get_logger(tipo) if not log: