mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-12 19:09:56 +03:00
pmb.aportgen.device: fix skipping when analyzing boot image (MR 2507)
Fix #2516
This commit is contained in:
parent
c831302a57
commit
dbf3e21446
1 changed files with 2 additions and 2 deletions
|
@ -111,9 +111,9 @@ def ask_for_bootimg():
|
|||
|
||||
while True:
|
||||
response = pmb.helpers.cli.ask("Path", None, "", False)
|
||||
path = Path(os.path.expanduser(response))
|
||||
if not path:
|
||||
if not response:
|
||||
return None
|
||||
path = Path(os.path.expanduser(response))
|
||||
try:
|
||||
return pmb.parse.bootimg(path)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue