Skip to content

Commit

Permalink
feat: add AttributeError at the ws consumer user validation (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder authored Jan 22, 2024
1 parent 7d39cad commit e808474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chats/apps/api/websockets/rooms/consumers/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def connect(self, *args, **kwargs):
UserModel = self.user._meta.model

self.project = self.scope["query_params"].get("project")[0]
except (KeyError, TypeError):
except (KeyError, TypeError, AttributeError):
close = True

if self.user.is_anonymous or close is True or self.project is None:
Expand Down

0 comments on commit e808474

Please sign in to comment.