Fix error handling

This commit is contained in:
Lorenz Meier 2014-11-02 22:00:42 +01:00
parent 0200d6a77c
commit 5862f4ffe6
1 changed files with 1 additions and 1 deletions

View File

@ -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