forked from mirrors/ranger_udisk_menu
code formatting
This commit is contained in:
parent
c0623bd310
commit
0dde4583b7
4
menu.py
4
menu.py
@ -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')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user