diff --git a/gestion/whos.py b/gestion/whos.py index df486f57..7ae92bcc 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -709,7 +709,7 @@ def prise_etat(chbre) : f = u'' try: # On met aussi l'état - from hptools import sw_chbre + from hptools import sw_chbre, ConversationError prise = sw_chbre(chbre) f += u'prise %s' % prise.prise_brute rows, cols = get_screen_size() @@ -748,10 +748,12 @@ def prise_etat(chbre) : f+= u', ' + coul(u'prise désactivée','rouge') else : f+= u', activée, lien non détecté' + except ConversationError: + # Switch non manageable ou down + f = u'info prise non dispo : erreur de communication' except : - # Switch non manageable - f = u'informations prise non disponibles' - + f = u'info prise non dispo : erreur prog' + return f ##############################################################################