summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2016-02-13 23:02:58 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2016-02-13 23:02:58 +0100
commit73af35e60eee0ad96c26a23bc4b761cd27f11518 (patch)
tree37bc4ffdc98beb3b1cdd4c03776ae0aaa9a8ef76
parentotultraeasy: move the MalformedCommand exception to common. (diff)
downloadglucometerutils-73af35e60eee0ad96c26a23bc4b761cd27f11518.tar
glucometerutils-73af35e60eee0ad96c26a23bc4b761cd27f11518.tar.gz
glucometerutils-73af35e60eee0ad96c26a23bc4b761cd27f11518.tar.bz2
glucometerutils-73af35e60eee0ad96c26a23bc4b761cd27f11518.tar.lz
glucometerutils-73af35e60eee0ad96c26a23bc4b761cd27f11518.tar.xz
glucometerutils-73af35e60eee0ad96c26a23bc4b761cd27f11518.tar.zst
glucometerutils-73af35e60eee0ad96c26a23bc4b761cd27f11518.zip
-rw-r--r--glucometerutils/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/exceptions.py b/glucometerutils/exceptions.py
index 3e73048..82f8013 100644
--- a/glucometerutils/exceptions.py
+++ b/glucometerutils/exceptions.py
@@ -16,8 +16,8 @@ class Error(Exception):
class ConnectionFailed(Error):
"""It was not possible to connect to the meter."""
- def __init__(self):
- self.message = 'Unable to connect to the meter.'
+ def __init__(self, message='Unable to connect to the meter.'):
+ self.message = message
class InvalidResponse(Error):