mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +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:
|
try:
|
||||||
return UserProfile.objects.get(pk=session_store['_auth_user_id'])
|
return UserProfile.objects.get(pk=session_store['_auth_user_id'])
|
||||||
except UserProfile.DoesNotExist:
|
except (UserProfile.DoesNotExist, KeyError):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
connections = dict()
|
connections = dict()
|
||||||
|
|||||||
Reference in New Issue
Block a user