Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 27, 2024
1 parent 9577311 commit 850ea97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion courses/management/commands/defer_enrollment.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def handle(self, *args, **options): # noqa: ARG002
message = str(exc)
raise CommandError(message) # noqa: B904
except ValidationError as exc:
raise CommandError(f"Invalid enrollment deferral - {exc}") # noqa: B904, TRY200, EM102
raise CommandError(f"Invalid enrollment deferral - {exc}") # noqa: B904, EM102
else:
if not to_enrollment:
raise CommandError(
Expand Down
2 changes: 1 addition & 1 deletion courseware/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def get_edx_api_client(user, ttl_in_seconds=OPENEDX_AUTH_DEFAULT_TTL_IN_SECONDS)
try:
auth = get_valid_edx_api_auth(user, ttl_in_seconds=ttl_in_seconds)
except OpenEdxApiAuth.DoesNotExist:
raise NoEdxApiAuthError( # noqa: B904, TRY200
raise NoEdxApiAuthError( # noqa: B904
f"{user!s} does not have an associated OpenEdxApiAuth" # noqa: EM102
)
return EdxApi(
Expand Down

0 comments on commit 850ea97

Please sign in to comment.