forked from mirrors/ranger_udisk_menu
code formatting
This commit is contained in:
parent
c0623bd310
commit
0dde4583b7
1 changed files with 3 additions and 1 deletions
4
menu.py
4
menu.py
|
@ -88,7 +88,9 @@ class ChoosePartition:
|
|||
self.screen.addstr(2 + i, 4, s, curses.color_pair(is_selected))
|
||||
|
||||
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. ' +
|
||||
'No model, size or name in blockdevice')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue