summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2019-09-26 19:47:25 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2019-09-26 19:47:25 +0200
commit07cf25f67a0e77d0a8a93304efc38d36cae2dcd0 (patch)
tree1ee2ee169b41ce0a00aa8b47b18d9f1168efc7aa
parentAdd driver implementation for Ascensia ContourUSB. (diff)
downloadglucometerutils-07cf25f67a0e77d0a8a93304efc38d36cae2dcd0.tar
glucometerutils-07cf25f67a0e77d0a8a93304efc38d36cae2dcd0.tar.gz
glucometerutils-07cf25f67a0e77d0a8a93304efc38d36cae2dcd0.tar.bz2
glucometerutils-07cf25f67a0e77d0a8a93304efc38d36cae2dcd0.tar.lz
glucometerutils-07cf25f67a0e77d0a8a93304efc38d36cae2dcd0.tar.xz
glucometerutils-07cf25f67a0e77d0a8a93304efc38d36cae2dcd0.tar.zst
glucometerutils-07cf25f67a0e77d0a8a93304efc38d36cae2dcd0.zip
-rw-r--r--glucometerutils/exceptions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glucometerutils/exceptions.py b/glucometerutils/exceptions.py
index 1cc8cfd..53aa980 100644
--- a/glucometerutils/exceptions.py
+++ b/glucometerutils/exceptions.py
@@ -34,10 +34,10 @@ class InvalidResponse(Error):
class InvalidChecksum(InvalidResponse):
- def __init__(self, expected, received):
+ def __init__(self, wire, calculated):
super(InvalidChecksum, self).__init__(
- 'Response checksum not matching: %08x expected, %08x received' %
- (expected, received))
+ 'Response checksum not matching: %08x (wire) != %08x (calculated)' %
+ (wire, calculated))
class InvalidGlucoseUnit(Error):