|
@@ -31,7 +31,8 @@ class BatcaveClient(object):
|
|
|
|
|
|
def get_nodes(self):
|
|
|
url = 'nodes.json'
|
|
|
- return self.__load_response(url, 'nodes')
|
|
|
+ response = self.__load_response(url, 'nodes')
|
|
|
+ return response.get('nodes') if response is not None else None
|
|
|
|
|
|
def get_node(self, nodeid):
|
|
|
"""Query the given node's data from the BATCAVE."""
|