annuaires_pg: erreur conn pg un peu plus claire
This commit is contained in:
parent
1487a4a957
commit
8c555bbee9
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ def _need_conn(f):
|
|||
def first_connect(*args, **kwargs):
|
||||
global conn, def_failed
|
||||
if def_failed:
|
||||
raise NameError
|
||||
raise NameError("La connexion à la pase postgresql ne peut être établie.")
|
||||
attempts = 0
|
||||
while not conn or not attempts:
|
||||
if __name__.endswith('annuaires_pg_test'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue