From fa85283e13a5d553ed595ffd004b4c934254989e Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Wed, 12 Jul 2017 09:22:42 +0200 Subject: [PATCH] Fixed obvious indentation error in InvalidResponseRecievedException class definition (#193) Signed-off-by: Tomas Hozza --- pymodbus/exceptions.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pymodbus/exceptions.py b/pymodbus/exceptions.py index c143569f5..17d659383 100644 --- a/pymodbus/exceptions.py +++ b/pymodbus/exceptions.py @@ -83,14 +83,13 @@ class InvalidResponseRecievedException(ModbusException): Error resulting from invalid response received or decoded """ + def __init__(self, string=""): + ''' Initialize the exception -def __init__(self, string=""): - ''' Initialize the exception - - :param string: The message to append to the error - ''' - message = "[Invalid Response] %s" % string - ModbusException.__init__(self, message) + :param string: The message to append to the error + ''' + message = "[Invalid Response] %s" % string + ModbusException.__init__(self, message) #---------------------------------------------------------------------------# # Exported symbols