Skip to content

Commit a0b561c

Browse files
committed
Fixed obvious indentation error in InvalidResponseRecievedException class definition
Signed-off-by: Tomas Hozza <thozza@gmail.com>
1 parent bd4c551 commit a0b561c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pymodbus/exceptions.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@ class InvalidResponseRecievedException(ModbusException):
8383
Error resulting from invalid response received or decoded
8484
"""
8585

86+
def __init__(self, string=""):
87+
''' Initialize the exception
8688
87-
def __init__(self, string=""):
88-
''' Initialize the exception
89-
90-
:param string: The message to append to the error
91-
'''
92-
message = "[Invalid Response] %s" % string
93-
ModbusException.__init__(self, message)
89+
:param string: The message to append to the error
90+
'''
91+
message = "[Invalid Response] %s" % string
92+
ModbusException.__init__(self, message)
9493

9594
#---------------------------------------------------------------------------#
9695
# Exported symbols

0 commit comments

Comments
 (0)