Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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