Skip to content

Commit

Permalink
fix(message): perform valid check for no channel
Browse files Browse the repository at this point in the history
  • Loading branch information
ImDevinC committed Nov 26, 2024
1 parent 37d3e1e commit 551f699
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twitch_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def on_disconnect(self, conn):
super().on_disconnect(conn)

def get_channel_id(self, user_name: str) -> str | None:
if not user_name:
return
if user_name in self.cached_channels:
return self.cached_channels[user_name]

Expand Down

0 comments on commit 551f699

Please sign in to comment.