Skip to content

Commit

Permalink
Merge pull request #20 from ImDevinC/fix-no-channel
Browse files Browse the repository at this point in the history
fix(message): perform valid check for no channel
  • Loading branch information
ImDevinC authored Nov 26, 2024
2 parents 37d3e1e + 551f699 commit 5d82134
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 5d82134

Please sign in to comment.