From cadddb45dfdf0ae4dc4f235a99be19bbca06ec78 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Tue, 23 Jun 2015 17:18:55 +0200 Subject: [PATCH] Revert "pas de mention explicite de annuaires_pg_test" This reverts commit 2f469b49160e56f76347a9442093d4a4c0947218. --- attributs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 5df039d..0f3a690 100644 --- a/attributs.py +++ b/attributs.py @@ -870,7 +870,11 @@ class chbre(Attr): elif chambre in (u"EXT", u"????"): self.value = chambre else: - annuaires_pg.chbre_prises(chambre[0], chambre[1:]) + try: + annuaires_pg.chbre_prises(chambre[0], chambre[1:]) + except NameError: + import annuaires_pg_test + annuaires_pg_test.chbre_prises(chambre[0], chambre[1:]) self.value = chambre @crans_attribute