summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):