Skip to content

Commit

Permalink
Fix recent mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Apr 21, 2021
1 parent ae3214f commit 46c566b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/linking/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def _upstream_submit(service_url, job: LinkingJobPrivate) -> str:

def _upstream_status(job: LinkingJobPrivate) -> LinkingStatus:
with httpx.Client() as client:
assert job.service_url
response = client.post(urljoin(job.service_url, 'status'),
content=job.remote_task_id)
assert not response.is_error, response.status_code
Expand All @@ -47,6 +48,7 @@ def _upstream_status(job: LinkingJobPrivate) -> LinkingStatus:

def _upstream_result(job: LinkingJobPrivate) -> List[dict]:
with httpx.Client() as client:
assert job.service_url
response = client.post(urljoin(job.service_url, 'result'),
content=job.remote_task_id)
assert not response.is_error, response.status_code
Expand Down

0 comments on commit 46c566b

Please sign in to comment.