Skip to content

Commit

Permalink
Drop pretalx serializer validations
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Sep 16, 2024
1 parent 98bc317 commit f07cc58
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pyconkr/external_apis/pretalx/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ def list_sessions(self, event_name: str, only_confirmed: bool = True) -> dict:
try:
result = self._request("GET", endpoint)
result.raise_for_status()

parsed_result = PretalxPaginatedSessionSerializer(data=result.json())
parsed_result.is_valid(raise_exception=True)
return parsed_result.validated_data
return result.json()
except Exception as e:
raise PretalxException("세션 목록을 가져오지 못했습니다, 잠시 후에 다시 시도해주세요.") from e

Expand All @@ -62,10 +59,7 @@ def retrieve_session(self, event_name: str, session_id: int) -> dict:
try:
result = self._request("GET", endpoint)
result.raise_for_status()

parsed_result = PretalxSessionSerializer(data=result.json())
parsed_result.is_valid(raise_exception=True)
return parsed_result.validated_data
return result.json()
except Exception as e:
raise PretalxException("세션을 가져오지 못했습니다, 잠시 후에 다시 시도해주세요.") from e

Expand Down

0 comments on commit f07cc58

Please sign in to comment.