mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Add TypeError guard for docker stats (#2474)
This commit is contained in:
parent
919c383b41
commit
0307d700fa
@ -32,7 +32,7 @@ class DockerStats:
|
||||
with suppress(KeyError):
|
||||
self._calc_network(stats["networks"])
|
||||
|
||||
with suppress(KeyError):
|
||||
with suppress(KeyError, TypeError):
|
||||
self._calc_block_io(stats["blkio_stats"])
|
||||
|
||||
def _calc_cpu_percent(self, stats):
|
||||
|
Loading…
x
Reference in New Issue
Block a user