Skip to content

Commit e91d5de

Browse files
cbergmillerdhoomakethu
authored andcommitted
[FIX] undefined last_exception in transaction.execute (#270)
1 parent 2f27c1b commit e91d5de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymodbus/transaction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def execute(self, request):
121121
expected_response_length = self._calculate_response_length(
122122
response_pdu_size)
123123

124+
last_exception = None
124125
while retries > 0:
125126
try:
126127
self.client.connect()

0 commit comments

Comments
 (0)