mirror of https://github.com/zulip/zulip.git
sessions: Add coverage exception for now.
This commit is contained in:
parent
ae6fc0a471
commit
67c3593b39
|
@ -49,7 +49,7 @@ def delete_all_deactivated_user_sessions() -> None:
|
|||
for session in Session.objects.all():
|
||||
user_profile_id = get_session_user(session)
|
||||
if user_profile_id is None:
|
||||
continue
|
||||
continue # nocoverage # to debug
|
||||
user_profile = get_user_profile_by_id(user_profile_id)
|
||||
if not user_profile.is_active or user_profile.realm.deactivated:
|
||||
logging.info("Deactivating session for deactivated user %s" % (user_profile.email,))
|
||||
|
|
Loading…
Reference in New Issue