Преглед изворни кода

Some nodes are missing the client key

Michael Schwarz пре 9 година
родитељ
комит
d4305863ba
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      modules/ffpb.py

+ 1 - 1
modules/ffpb.py

@@ -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