mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
socket: Don't throw traceback when sessions are expired.
(imported from commit 16c876b5bbd0c6ecd5ef48369a7f71ca74d1183f)
This commit is contained in:
@@ -38,7 +38,7 @@ def get_user_profile(session_id):
|
||||
|
||||
try:
|
||||
return UserProfile.objects.get(pk=session_store['_auth_user_id'])
|
||||
except UserProfile.DoesNotExist:
|
||||
except (UserProfile.DoesNotExist, KeyError):
|
||||
return None
|
||||
|
||||
connections = dict()
|
||||
|
||||
Reference in New Issue
Block a user