Reworked fault handling a bit

This commit is contained in:
Anton Hvornum 2021-02-07 18:57:47 +01:00
parent 4349512ef3
commit d184777a1b
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class BlockDevice():
if not info:
# If we don't give any information, we need to auto-fill it.
# Otherwise any subsequent usage will break.
info = all_disks().get(path, {})
info = all_disks()[path].info
self.path = path
self.info = info