We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9647bd1 commit 54e5373Copy full SHA for 54e5373
openandroidinstaller/tooling.py
@@ -183,7 +183,7 @@ def adb_twrp_format_data(bin_path: Path) -> TerminalResponse:
183
"""
184
unknown_command = False
185
for line in run_command("adb shell twrp format data", bin_path):
186
- if "Unrecognized script command" in line:
+ if (type(line) == str) and ("Unrecognized script command" in line):
187
unknown_command = True
188
yield line
189
0 commit comments