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