diff --git a/main/models.py b/main/models.py index bf94d82b0..3663e4550 100644 --- a/main/models.py +++ b/main/models.py @@ -1,8 +1,12 @@ +import logging + from django.contrib.auth import get_user_model from django.contrib.auth.models import User from django.db import models from django.utils.translation import ugettext_lazy as _ +logger = logging.getLogger("ethics.main") + class YesNoDoubt(models.TextChoices): YES = "Y", _("ja") @@ -159,6 +163,6 @@ def process_faculties(self, faculties): continue faculty_obj.users.add(self) - except: - # Just ignore any errors... + except: # noQA + logger.error(f"Error processing faculty for user", exc_info=True) continue