diff --git a/gestion/annuaires_pg.py b/gestion/annuaires_pg.py index 6a00057e..4c5e3003 100755 --- a/gestion/annuaires_pg.py +++ b/gestion/annuaires_pg.py @@ -11,6 +11,7 @@ try: cur.execute("SELECT DISTINCT batiment FROM prises") bat_switchs = [i[0] for i in cur.fetchall()] + cur.close() except psycopg2.OperationalError: bat_switchs = ["a", "b", "c", "g", "h", "i", "j", "m", "o", "p"]