Skip to content

Commit

Permalink
fix: quality error
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii committed Nov 28, 2024
1 parent 474b7c3 commit b7dc79a
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -34,7 +34,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

0 comments on commit b7dc79a

Please sign in to comment.