pmb.aportgen.device: fix skipping when analyzing boot image (MR 2507)

Fix #2516
This commit is contained in:
Anri Dellal 2024-12-05 16:13:31 +03:00 committed by Oliver Smith
parent c831302a57
commit dbf3e21446
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -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: