From 130c96a2fe17f1f50f0bf722a742d6c374dabffa Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 11 Oct 2023 00:21:21 -0500 Subject: [PATCH] Fix register --- judge/models/profile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/judge/models/profile.py b/judge/models/profile.py index 00dbe3f..3692e39 100644 --- a/judge/models/profile.py +++ b/judge/models/profile.py @@ -12,7 +12,6 @@ from django.utils.timezone import now from django.utils.translation import gettext_lazy as _ from django.dispatch import receiver from django.db.models.signals import post_save, pre_save -from django.core.exceptions import RelatedObjectDoesNotExist from fernet_fields import EncryptedCharField @@ -549,7 +548,7 @@ def on_user_save(sender, instance, **kwargs): try: profile = instance.profile profile._get_basic_info.dirty(profile) - except RelatedObjectDoesNotExist: + except: pass