diff --git a/printing/templates/templates.py b/printing/templates/templates.py index 713c47f..8d4d5d9 100644 --- a/printing/templates/templates.py +++ b/printing/templates/templates.py @@ -57,7 +57,7 @@ def prise_etat(chbre): try: switch = hptools2.HPSwitch(switch_name) except hptools2.SwitchNotFound: - return style(u"Chambre inconnue", "violet") + return style(u"Meh, le switch %s ne répond pas ou n'existe pas." % (switch_name,), "violet") vlan_list = switch.get_vlans(port) vlans = u" " * (13 + len(chbre))