Skip to content

Commit

Permalink
small fixes found while updating samples (#17542)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapratico authored Mar 25, 2021
1 parent 3320f87 commit 1fc8f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def __init__(
**kwargs
):
# type: (**Any) -> None
self.translated_document_url = kwargs['translated_document_url']
self.translated_document_url = kwargs.get('translated_document_url', None)
self.created_on = kwargs['created_on']
self.last_updated_on = kwargs['last_updated_on']
self.status = kwargs['status']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ async def create_translation_job(self, inputs, **kwargs):
# pylint: disable=protected-access
inputs=DocumentTranslationInput._to_generated_list(inputs),
cls=lambda pipeline_response, _, response_headers: response_headers,
polling=True,
**kwargs
)

Expand Down Expand Up @@ -159,7 +158,7 @@ def callback(raw_response):
**kwargs
),
)
return poller.result()
return await poller.result()

@distributed_trace
def list_submitted_jobs(self, **kwargs):
Expand Down

0 comments on commit 1fc8f30

Please sign in to comment.