Skip to content

Commit

Permalink
fix: pylint errors wrong-import-order
Browse files Browse the repository at this point in the history
  • Loading branch information
becdavid committed Jan 22, 2024
1 parent f18180c commit 1eb03df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions common/djangoapps/student/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
COURSE_UNENROLLMENT_COMPLETED,
)
from openedx_filters.learning.filters import CourseEnrollmentStarted, CourseUnenrollmentStarted

from organizations import api as organizations_api
from organizations.models import Organization, UserOrganizationMapping

import openedx.core.djangoapps.django_comment_common.comment_client as cc
from common.djangoapps.course_modes.models import CourseMode, get_cosmetic_verified_display_price
from common.djangoapps.student.emails import send_proctoring_requirements_email
Expand Down Expand Up @@ -99,9 +103,6 @@
from openedx.core.djangolib.model_mixins import DeletableByUserValue
from openedx.core.toggles import ENTRANCE_EXAMS

from organizations import api as organizations_api
from organizations.models import Organization, UserOrganizationMapping

log = logging.getLogger(__name__)
AUDIT_LOG = logging.getLogger("audit")
SessionStore = import_module(settings.SESSION_ENGINE).SessionStore # pylint: disable=invalid-name
Expand Down Expand Up @@ -1740,7 +1741,7 @@ def enroll(cls, user, course_key, mode=None, check_access=False, can_upgrade=Fal
user_org.save()

except Exception as excep: # lint-amnesty, pylint: disable=broad-except
log.error(u"Could not create UserOrganizationMapping for org %s, user %s\n%s",
log.error("Could not create UserOrganizationMapping for org %s, user %s\n%s",
organization.name,
user.username,
excep
Expand Down

0 comments on commit 1eb03df

Please sign in to comment.