Browse Source

RedisStorage.get_node_data: return empty result as None

Helge Jung 9 years ago
parent
commit
db0f7aa619
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ffstatus/redisstorage.py

+ 1 - 1
ffstatus/redisstorage.py

@@ -64,7 +64,7 @@ class RedisStorage(BaseStorage):
     def get_node_data(self, key):
         node = {}
         thedata = self.db.hgetall('node_' + key)
-        if thedata is None:
+        if thedata is None or len(thedata) == 0:
             return None
 
         for item in thedata: