From fed9b34339686ffe4cf0cd936600fa1754d94177 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 26 Feb 2011 12:05:14 +0100 Subject: [PATCH] =?UTF-8?q?[annuaires=5Fpg]=20On=20ferme=20la=20connexion?= =?UTF-8?q?=20quand=20on=20a=20r=C3=A9cup=C3=A9r=C3=A9=20la=20liste=20des?= =?UTF-8?q?=20b=C3=A2timents=20*ahem*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20110226110514-ffbb2-228277e9a40bddbaf6156d84e3f74662c6873797.gz --- gestion/annuaires_pg.py | 1 + 1 file changed, 1 insertion(+) 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"]