Skip to content

Commit

Permalink
Fixed obvious indentation error in InvalidResponseRecievedException c…
Browse files Browse the repository at this point in the history
…lass definition (pymodbus-dev#193)

Signed-off-by: Tomas Hozza <[email protected]>
  • Loading branch information
thozza authored and dhoomakethu committed Jul 12, 2017
1 parent cb9fa41 commit fa85283
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pymodbus/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa85283

Please sign in to comment.