Skip to content

Commit 54e5373

Browse files
committed
Fix stupid bug...
1 parent 9647bd1 commit 54e5373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openandroidinstaller/tooling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def adb_twrp_format_data(bin_path: Path) -> TerminalResponse:
183183
"""
184184
unknown_command = False
185185
for line in run_command("adb shell twrp format data", bin_path):
186-
if "Unrecognized script command" in line:
186+
if (type(line) == str) and ("Unrecognized script command" in line):
187187
unknown_command = True
188188
yield line
189189

0 commit comments

Comments
 (0)