On dit clairement que la chambre est pas valide.
darcs-hash:20051025214153-41617-d0adfac42704e103bb69ddab21a3a841fbdb49a6.gz
This commit is contained in:
parent
f103cf0736
commit
515de41b57
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue