From dba7f779b19f50442abf54d32940524f395351c6 Mon Sep 17 00:00:00 2001 From: Pavel Kostromitinov Date: Tue, 12 Sep 2023 17:25:54 +0300 Subject: [PATCH] Allow repr(ModbusException) to return complete information (#1779) --- pymodbus/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymodbus/exceptions.py b/pymodbus/exceptions.py index efc276a22..6e6a213d6 100644 --- a/pymodbus/exceptions.py +++ b/pymodbus/exceptions.py @@ -24,7 +24,7 @@ def __init__(self, string): :param string: The message to append to the error """ self.string = string - super().__init__() + super().__init__(string) def __str__(self): """Return string representation."""