diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-02 22:00:42 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-02 22:00:42 +0100 |
commit | 5862f4ffe6b463934cceb7bb034e77f100f97633 (patch) | |
tree | d1618884c45599b1da8cf0b7c32ec907802fa411 | |
parent | 0200d6a77cc0566cf2aa9dcda782ca740e0b5be5 (diff) | |
download | px4-firmware-5862f4ffe6b463934cceb7bb034e77f100f97633.tar.gz px4-firmware-5862f4ffe6b463934cceb7bb034e77f100f97633.tar.bz2 px4-firmware-5862f4ffe6b463934cceb7bb034e77f100f97633.zip |
Fix error handling
-rwxr-xr-x | Tools/px_uploader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index 0bf2b82dd..ea2f64639 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -195,7 +195,7 @@ class uploader(object): def __recv(self, count=1): c = self.port.read(count) if len(c) < 1: - raise RuntimeError("timeout waiting for data (%u bytes)", count) + raise RuntimeError("timeout waiting for data (%u bytes)" % count) # print("recv " + binascii.hexlify(c)) return c |