[gestion/annuaires_pg] typo

darcs-hash:20101017150904-bd074-53274bfad026c4ff7c80a817c057e42c2b763ed5.gz
This commit is contained in:
Antoine Durand-Gasselin 2010-10-17 17:09:04 +02:00
parent 674d5ecbcc
commit 5f6ce56139

View file

@ -28,7 +28,7 @@ def chbre_prises(batiment, chambre = None):
try: try:
return "%03d" % cur.fetchone()[0] return "%03d" % cur.fetchone()[0]
except TypeError: except TypeError:
raise ValueError("Prise inexistante") raise ValueError("Chambre inexistante")
else: else:
cur = conn.cursor() cur = conn.cursor()
cur.execute("SELECT chambre, prise_crans FROM prises WHERE batiment = %s", batiment) cur.execute("SELECT chambre, prise_crans FROM prises WHERE batiment = %s", batiment)