Skip to content

Commit 0112ec1

Browse files
committed
Catch issue with heimdall info on windows
1 parent 508f843 commit 0112ec1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

openandroidinstaller/openandroidinstaller.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ def log_version_infos(bin_path):
210210
hdversion = [
211211
line for line in run_command("heimdall info", bin_path, enable_logging=False)
212212
]
213-
logger.info(f"Heimdall version: {hdversion[1].strip()}")
213+
try:
214+
logger.info(f"Heimdall version: {hdversion[1].strip()}")
215+
except:
216+
logger.info(f"Issue with heimdall: {hdversion}")
214217

215218

216219
def main(page: Page, test: bool = False, test_config: str = "sargo"):
@@ -254,7 +257,7 @@ def main(page: Page, test: bool = False, test_config: str = "sargo"):
254257
),
255258
padding=15,
256259
tooltip="Report an issue on github",
257-
)
260+
),
258261
],
259262
)
260263

0 commit comments

Comments
 (0)