Skip to content

Commit

Permalink
Fix code style issues with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
weee-open-bot committed Nov 20, 2024
1 parent c7aa375 commit 8a618c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basilico.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def close_at_end(self, _cmd: str, _nothing: str):
def _get_last_linux_partition_path_and_number(dev: str) -> tuple[str, str] | tuple[None, None]:
# Use PTTYPE to get MBR/GPT (dos/gpt are the possible values)
# PARTTYPENAME could be useful, too

exitcode, output = subprocess.getstatusoutput(f"lsblk -o PATH,PARTTYPE,PARTN -J {dev}")
if exitcode != 0:
exitcode, output = subprocess.getstatusoutput(f"lsblk -o PATH,PARTTYPE -J {dev}")
Expand Down

0 comments on commit 8a618c2

Please sign in to comment.