Browse Source

BaseStorage: handle incomplete data properly

Helge Jung 8 years ago
parent
commit
d3489dba33
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ffstatus/basestorage.py

+ 1 - 1
ffstatus/basestorage.py

@@ -159,7 +159,7 @@ class BaseStorage(object):
 
             current[item_id] = ffstatus.dict_merge(node, {})
             current[item_id]['aliases'] = []
-            current[item_id]['clients.bak'] = current[item_id]['clients']
+            current[item_id]['clients.bak'] = current[item_id].get('clients', [])
             current[item_id]['clients'] = []
             current[item_id]['neighbours'] = {}
             current[item_id]['type'] = 'node'