Skip to content

Commit

Permalink
Fix stupid bug...
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed May 10, 2023
1 parent 9647bd1 commit 54e5373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openandroidinstaller/tooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def adb_twrp_format_data(bin_path: Path) -> TerminalResponse:
"""
unknown_command = False
for line in run_command("adb shell twrp format data", bin_path):
if "Unrecognized script command" in line:
if (type(line) == str) and ("Unrecognized script command" in line):
unknown_command = True
yield line

Expand Down

0 comments on commit 54e5373

Please sign in to comment.