diff --git a/basilico.py b/basilico.py index 3f77cef..4678c9c 100755 --- a/basilico.py +++ b/basilico.py @@ -416,7 +416,9 @@ def remove_all_from_queue(self, cmd: str, _unused: str): for the_command in commands_to_remove: queued_commands.remove(the_command) - logging.debug(f"Removed {len(commands_to_remove)} items from tasks list") + logging.debug( + f"Removed {len(commands_to_remove)} items from tasks list" + ) return None diff --git a/pinolo.py b/pinolo.py index 5ab6d23..ebfd270 100755 --- a/pinolo.py +++ b/pinolo.py @@ -585,13 +585,17 @@ def queue_info(self): self.deselect() def get_multiple_drive_selection(self): - """ This method returns a list with the names of the selected drives on disk_table """ + """This method returns a list with the names of the selected drives on disk_table""" drives = [] selected_items = self.diskTable.selectedItems() columns = self.diskTable.columnCount() for idx in range(len(selected_items) // columns): - drives.append([selected_items[idx * columns].text(), - selected_items[(idx * columns) + 1].text()]) + drives.append( + [ + selected_items[idx * columns].text(), + selected_items[(idx * columns) + 1].text(), + ] + ) return drives @@ -655,7 +659,6 @@ def erase(self, std=False, drives=None): for drive in drives: self.client.send("queued_badblocks " + drive[0]) - except BaseException: print("GUI: Error in erase Function") @@ -1002,9 +1005,7 @@ def use_cannolo_img(self, directory: str, img: str): for drive in drives: ids += f"{drive[0]}, " ids.rstrip(", ") - self.statusBar().showMessage( - f"Sending cannolo to {ids} with {img}" - ) + self.statusBar().showMessage(f"Sending cannolo to {ids} with {img}") for drive in drives: self.client.send(f"queued_cannolo {drive[0]} {directory}")