code formatting

This commit is contained in:
Alexander Lutsai 2021-04-26 20:01:48 +03:00
parent c0623bd310
commit 0dde4583b7

View File

@ -88,7 +88,9 @@ class ChoosePartition:
self.screen.addstr(2 + i, 4, s, curses.color_pair(is_selected)) self.screen.addstr(2 + i, 4, s, curses.color_pair(is_selected))
def _select_print_block_device(self, bd, i): def _select_print_block_device(self, bd, i):
if 'model' not in bd or 'size' not in bd or 'name' not in bd: if not ('model' in bd and
'size' in bd or
'name' in bd):
raise Exception('Wrong lsblk json format. ' + raise Exception('Wrong lsblk json format. ' +
'No model, size or name in blockdevice') 'No model, size or name in blockdevice')