Commit a9f8a081 by Rocky Duan

dumb bug

parent c4717df5
...@@ -105,9 +105,9 @@ def _perform_request(method, url, data_or_params=None, *args, **kwargs): ...@@ -105,9 +105,9 @@ def _perform_request(method, url, data_or_params=None, *args, **kwargs):
else: else:
response = requests.request(method, url, params=data_or_params) response = requests.request(method, url, params=data_or_params)
if 200 < response.status_code < 500: if 200 < response.status_code < 500:
raise CommentClientException(response.text) raise CommentClientError(response.text)
elif response.status_code == 500: elif response.status_code == 500:
raise CommentClientUnknownException(response.text) raise CommentClientUnknownError(response.text)
else: else:
if kwargs.get("raw", False): if kwargs.get("raw", False):
return response.text return response.text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment