Skip to content

Commit

Permalink
Merge pull request #661 from DH-IT-Portal-Development/acceptation
Browse files Browse the repository at this point in the history
Merge log-call addition to master
  • Loading branch information
tymees authored Apr 24, 2024
2 parents 52aaa4c + 62419c7 commit cf5b02d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main/models.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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

0 comments on commit cf5b02d

Please sign in to comment.