From 0dde4583b78d2a2ca257b2841b7746d7b6d9670e Mon Sep 17 00:00:00 2001 From: Alexander Lutsai Date: Mon, 26 Apr 2021 20:01:48 +0300 Subject: [PATCH] code formatting --- menu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/menu.py b/menu.py index 1916b78..d0d9878 100644 --- a/menu.py +++ b/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')