From bbb116c1fb2625bbcddc70647db775ee7b7ac94e Mon Sep 17 00:00:00 2001 From: Jason Cameron Date: Wed, 2 Oct 2024 18:03:45 -0400 Subject: [PATCH] Chore: fix linter issues with apps Signed-off-by: Jason Cameron --- judge/apps.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/judge/apps.py b/judge/apps.py index a54acd506b..1268e37b64 100644 --- a/judge/apps.py +++ b/judge/apps.py @@ -1,9 +1,11 @@ +import logging + from django.apps import AppConfig from django.db import DatabaseError from django.utils.translation import gettext_lazy -import logging -logger = logging.getLogger("judge.apps") +logger = logging.getLogger('judge.apps') + class JudgeAppConfig(AppConfig): name = 'judge' @@ -27,5 +29,4 @@ def ready(self): profile.save() logger.info('Created profile for user %s', user) except DatabaseError as e: - logger.error('Failed to create profiles for users: %s', e) - + logger.error('Failed to create profiles for users: %s', e.__traceback__)