From 075e678f0c7f790ace09e79bf2caf1439ab4934f Mon Sep 17 00:00:00 2001 From: codeskyblue Date: Tue, 16 Jan 2024 14:20:32 +0800 Subject: [PATCH] little update --- adbutils/_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adbutils/_device.py b/adbutils/_device.py index a531714..b41b053 100644 --- a/adbutils/_device.py +++ b/adbutils/_device.py @@ -244,7 +244,7 @@ def shell2(self, output = self.shell(newcmd, timeout=timeout, encoding=encoding, rstrip=True) rindex = output.rfind(MAGIC if encoding else MAGIC.encode()) if rindex == -1: # normally will not possible - raise AdbError("shell output invalid", output) + raise AdbError("shell output invalid", newcmd, output) returncoode = int(output[rindex + len(MAGIC):]) output = output[:rindex] if rstrip and encoding: