Skip to content

Commit

Permalink
Merge pull request #49 from iluvcapra/pt-2024.6
Browse files Browse the repository at this point in the history
Pt 2024.6
  • Loading branch information
iluvcapra authored Nov 22, 2024
2 parents 84f6a33 + 0193a8a commit 2505b09
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ptsl/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def run(self, operation: Operation) -> None:
# response.response_error_json)
command_errors = json_format.Parse(cleaned_response_error_json,
pt.ResponseError())
raise CommandError(command_errors.errors)
raise CommandError(list(command_errors.errors))

elif response.header.status == pt.Completed:
self._handle_completed_response(operation, response)
Expand All @@ -180,10 +180,11 @@ def _prepare_operation_request_json(self, operation):
request_body_json = ""
else:
request_body_json = \
json_format.MessageToJson(operation.request,
always_print_fields_with_no_presence=True,
# including_default_value_fields=True,
preserving_proto_field_name=True)
json_format.MessageToJson(
operation.request,
always_print_fields_with_no_presence=True,
# including_default_value_fields=True,
preserving_proto_field_name=True)

self.auditor.request_json_before_cleanup(request_body_json)
request_body_json = operation.json_messup(request_body_json)
Expand Down

0 comments on commit 2505b09

Please sign in to comment.