diff --git a/gestion/annuaires_pg.py b/gestion/annuaires_pg.py index 90ca55fe..4a7fd263 100644 --- a/gestion/annuaires_pg.py +++ b/gestion/annuaires_pg.py @@ -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'):