@@ -576,7 +576,7 @@ def ffpb_fetch_stats(bot, url, memoryid):
clients_count = 0
for node in data['nodes']:
- if node['flags']['gateway'] or node['flags']['client']:
+ if node['flags']['gateway'] or (node['flags'].has_key('client') and node['flags']['client']):
continue
nodes_total += 1