forked from platypush/platypush
Don't fail hard if the Linode API doesn't return a list of instances
This commit is contained in:
parent
ca25607262
commit
12887b61fe
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class LinodeBackend(SensorBackend):
|
|||
self.instances = set(instances or [])
|
||||
|
||||
def process_data(self, data: Dict[str, dict], new_data: Optional[Dict[str, dict]] = None, **kwargs):
|
||||
instances = data['instances']
|
||||
instances = data.get('instances', {})
|
||||
old_instances = (self.data or {}).get('instances', {})
|
||||
|
||||
if self.instances:
|
||||
|
|
Loading…
Reference in a new issue