Skip to content

Commit cecb2e6

Browse files
Update template/server/messaging.py
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
1 parent e710402 commit cecb2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/server/messaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ async def execute(
345345
break
346346
except (ConnectionClosedError, WebSocketException) as e:
347347
# Keep the last result, even if error
348-
if i < MAX_RECONNECT_RETRIES - 1:
348+
if i < MAX_RECONNECT_RETRIES:
349349
logger.warning(
350350
f"WebSocket connection lost while sending execution request, {i + 1}. reconnecting...: {str(e)}"
351351
)

0 commit comments

Comments
 (0)