From 8314de76d424d46dd0b0759031e03ef8b5edc05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 28 Jan 2019 10:17:33 +0000 Subject: exceptions: avoid using kwargs for message, as it's not correct. Fixes the nested exception reported in Issue #50. --- glucometerutils/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glucometerutils/exceptions.py b/glucometerutils/exceptions.py index b21c2ab..91b276f 100644 --- a/glucometerutils/exceptions.py +++ b/glucometerutils/exceptions.py @@ -18,14 +18,14 @@ class ConnectionFailed(Error): """It was not possible to connect to the meter.""" def __init__(self, message='Unable to connect to the meter.'): - super(ConnectionFailed, self).__init__(message=message) + super(ConnectionFailed, self).__init__(message) class CommandError(Error): """It was not possible to send a command to the device.""" def __init__(self, message="Unable to send command to device."): - super(CommandError, self).__init__(message=message) + super(CommandError, self).__init__(message) class InvalidResponse(Error): -- cgit v1.2.3