diff --git a/gestion/whos.py b/gestion/whos.py index 972eb5f1..f0e94070 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -760,9 +760,10 @@ def prise_etat(chbre) : 'sh: line 1: command not found' : u'infos prise non dispo depuis cette machine' }.get(r.args[0],r.args[0]) + except ValueError, r : + f = r.args[0] except : f = u'infos prise non dispo : erreur interne' - return f ############################################################################## @@ -921,7 +922,7 @@ def __recherche() : if arg.count('=') == 1 and arg.split('=')[0] == 'chbre' : # Affichage des infos de la chambre chbre = arg.split('=')[1] - print u"Chambre %s inocupée ou invalide (%s)" % (chbre,prise_etat(chbre)) + print u"Chambre %s inoccupée ou invalide (%s)" % (chbre,prise_etat(chbre)) else : print u"Aucun résultat trouvé." sys.exit(3)