whos: don't crash si pas de rid

This commit is contained in:
Daniel STAN 2014-12-10 17:45:01 +01:00
parent b0eeca2c3b
commit 7fc08aa975
2 changed files with 3 additions and 2 deletions

View file

@ -1079,7 +1079,8 @@ def __bases_machines(m) :
""" Retourne [ type de la machines, blacklist ] """
#Type
t = 'inconnu'
t, _ = ridtools.find_rid_plage(int(m.rid()))
if m.rid():
t, _ = ridtools.find_rid_plage(int(m.rid()))
# Déconnectée ?
b = m.blacklist_actif()