sessions: Add coverage exception for now.

This commit is contained in:
Tim Abbott 2018-11-14 15:28:35 -08:00
parent ae6fc0a471
commit 67c3593b39
1 changed files with 1 additions and 1 deletions

View File

@ -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,))