Skip to content

Commit

Permalink
fix: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
mudassir-hafeez committed May 30, 2024
1 parent 4144b19 commit d2272c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion courseware/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,6 @@ def validate_name_with_edx(name):
)
)
except Exception as exc: # noqa: BLE001
raise EdxApiRegistrationValidationException(name, exc.response)
raise EdxApiRegistrationValidationException(name, exc.response) from exc

return resp["validation_decisions"]["name"]
2 changes: 1 addition & 1 deletion courseware/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_validate_name_with_edx_failure(mocker):
"""
name = "Test User"

class MockApiException(Exception):
class MockApiException(Exception): # noqa: N818
"""Mock exception for API errors with a response attribute."""
def __init__(self, message, response):
super().__init__(message)
Expand Down

0 comments on commit d2272c0

Please sign in to comment.