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