jerryshao commented on code in PR #4093:
URL: https://github.com/apache/gravitino/pull/4093#discussion_r1667927206
##########
clients/client-python/gravitino/client/gravitino_client_base.py:
##########
@@ -75,7 +75,7 @@ def load_metalake(self, name: str) -> GravitinoMetalake:
self.check_metalake_name(name)
response = self._rest_client.get(
- GravitinoClientBase.API_METALAKES_IDENTIFIER_PATH + name
+ GravitinoClientBase.API_METALAKES_IDENTIFIER_PATH + name,
Review Comment:
What is the purpose of this change?
##########
clients/client-python/gravitino/dto/responses/base_response.py:
##########
@@ -35,7 +35,6 @@ def code(self) -> int:
def validate(self):
"""Validates the response code.
- TODO: @throws IllegalArgumentException if code value is negative.
+ @throws IllegalArgumentException if code value is negative.
"""
- if self._code < 0:
- raise ValueError("code must be >= 0")
+ assert self._code >= 0, "code must be >= 0"
Review Comment:
Will it throw an `IllegalArgumentException` here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]