diff --git a/openedx/core/djangoapps/django_comment_common/comment_client/user.py b/openedx/core/djangoapps/django_comment_common/comment_client/user.py index 5a6bb6f2cb6f..0547fec8aa45 100644 --- a/openedx/core/djangoapps/django_comment_common/comment_client/user.py +++ b/openedx/core/djangoapps/django_comment_common/comment_client/user.py @@ -6,6 +6,7 @@ from forum import api as forum_api from forum.utils import ForumV2RequestError + class User(models.Model): accessible_fields = [ @@ -152,7 +153,7 @@ def _retrieve(self, *args, **kwargs): try: response = forum_api.retrieve_user(self.attributes["id"], retrieve_params) except ForumV2RequestError as e: - raise str(e) + raise str(e) self._update_from_response(response) def retire(self, retired_username): diff --git a/openedx/core/djangoapps/django_comment_common/comment_client/utils.py b/openedx/core/djangoapps/django_comment_common/comment_client/utils.py index 6477267a982d..4f7f5580a179 100644 --- a/openedx/core/djangoapps/django_comment_common/comment_client/utils.py +++ b/openedx/core/djangoapps/django_comment_common/comment_client/utils.py @@ -34,8 +34,15 @@ def _get_comment_service_url(url): return url.replace(PREFIX, COMMENTS_SERVICE_PREFIX) -def perform_request(method, url, data_or_params=None, raw=False, - metric_action=None, metric_tags=None, paged_results=False): +def perform_request( + method, + url, + data_or_params=None, + raw=False, + metric_action=None, + metric_tags=None, + paged_results=False, +): # To avoid dependency conflict from openedx.core.djangoapps.django_comment_common.models import ForumsConfig config = ForumsConfig.current() @@ -82,7 +89,7 @@ def perform_request(method, url, data_or_params=None, raw=False, log.info( """ ======> FORUM <====== - + method: {method} url: {url} params: {params}