Skip to content

Commit 2e656d3

Browse files
WillowSauceRWillowSauceR
authored andcommitted
Optimize return to server offline
1 parent 4f9da8f commit 2e656d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

motd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ def recv_pkt(sk_send):
4747
send_pkt(addr, port, timeout)
4848
except TimeoutError:
4949
log(f"Timeout! Server may be offline or blocked motd request.")
50+
except ConnectionResetError:
51+
log(f"Connection Reset! Server may be offline or blocked motd request.")

0 commit comments

Comments
 (0)