Skip to content

Commit

Permalink
Fix hex string length in UndefinedModbusError.
Browse files Browse the repository at this point in the history
  • Loading branch information
acolomb committed Mar 10, 2021
1 parent 0e156f6 commit c3212d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umodbus/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self, error_code):
self.error_code = error_code

def __str__(self):
return 'Non-standard Modbus error code %#02x received.' % self.error_code
return 'Non-standard Modbus error code %#04x received.' % self.error_code


class IllegalFunctionError(ModbusError):
Expand Down

0 comments on commit c3212d6

Please sign in to comment.