Skip to content

Commit

Permalink
fix: quality error
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii committed Dec 3, 2024
1 parent eb12a56 commit 3056904
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commerce_coordinator/apps/lms/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def on_failure(self, exc, task_id, args, kwargs, einfo):
error_message = (
json.loads(exc.response.text).get('message', '')
if hasattr(exc, 'response') and exc.response is not None
else exc
else str(exc)
)

logger.error(
Expand Down
2 changes: 1 addition & 1 deletion commerce_coordinator/apps/lms/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import logging
from unittest.mock import patch, sentinel, Mock
from unittest.mock import Mock, patch, sentinel

from django.test import TestCase
from requests import RequestException
Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ def setup(app):
event = 'builder-inited'
app.connect(event, on_init)

# celery.Task has some roles inside the library that are not recognized by Sphinx
# and causing errors, so we add them here to avoid the errors.
rst_prolog = """
.. role:: setting
.. role:: sig
Expand Down

0 comments on commit 3056904

Please sign in to comment.