File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ def _reset_auto_join_timer(self):
253253
254254 def _check_name_match (self , name : str ) -> bool :
255255 return (
256+ name is not None and
256257 re .search (self .include_pattern , name ) is not None and
257258 (self .exclude_pattern is None or re .search (self .exclude_pattern , name ) is None )
258259 )
Original file line number Diff line number Diff line change @@ -474,6 +474,7 @@ def _get_channels(self) -> List[ChannelType]:
474474 perms = channel .permissions_for (member )
475475 name = channel .name
476476 if (
477+ name is not None and
477478 (perms .send_messages or (perms .connect and perms .stream and perms .speak )) and
478479 re .search (self .include_pattern , name ) is not None and
479480 (self .exclude_pattern is None or re .search (self .exclude_pattern , name ) is None )
You can’t perform that action at this time.
0 commit comments