Skip to content

Commit

Permalink
Fix repr for shards
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Jan 17, 2024
1 parent 2c33140 commit d5098bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion novus/api/gateway/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def __init__(

def __repr__(self) -> str:
state: str
if self.socket is None:
if self.socket is None or self.socket.closed:
state = "DISCONNECTED"
elif self.ready.is_set():
state = "READY"
Expand Down

0 comments on commit d5098bb

Please sign in to comment.