From 5e963998ef2a6eea5261400bef15c8cfcaff06e0 Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Mon, 15 Jun 2020 06:34:36 -0700 Subject: [PATCH] String formatting --- adb_shell/adb_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb_shell/adb_device.py b/adb_shell/adb_device.py index c767560..570829d 100644 --- a/adb_shell/adb_device.py +++ b/adb_shell/adb_device.py @@ -887,7 +887,7 @@ def _read_until_close(self, adb_info): # Make sure the ADB command has not timed out if adb_info.timeout_s is not None and time.time() - start > adb_info.timeout_s: - raise exceptions.AdbTimeoutError("The command did not complete within %f seconds", adb_info.timeout_s) + raise exceptions.AdbTimeoutError("The command did not complete within {} seconds".format(adb_info.timeout_s)) def _send(self, msg, adb_info): """Send a message to the device.