mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 06:28:23 +00:00
I can find no evidence of it being possible to get an Exception when accessing request.user or for it to be falsy. Django should always set request.user to either a UserProfile (if logged in) or AnonymousUser instance. Thus, this seems to be dead code that's handling cases that can't happen.
38 KiB
38 KiB