Browse Source

fixed code when no .friends

import/heads/master
Cian Brennan 11 years ago
parent
commit
ff46008d01
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      rbusers.py

+ 5
- 2
rbusers.py View File

@@ -51,8 +51,11 @@ for user in users :
group = pwd.getpwnam(n)[3]
logged_users[n] = [ 1, ]
logged_users[n].append( groups.get( group, default_colour ) )
if n in friends and group is not 100:
logged_users[n][1] = white_text_escape
try:
if n in friends and group is not 100:
logged_users[n][1] = white_text_escape
except NameError:
pass
except KeyError:
pass



Loading…
Cancel
Save