Skip to content

Commit

Permalink
Merge pull request #340: Fix failing Pyright test
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Dec 19, 2023
2 parents 891cbf3 + 6bca234 commit b7b8aef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nextstrain/cli/remote/nextstrain_dot_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,9 @@ def content_media_type(response: requests.Response) -> str:
# so instead!
msg = EmailMessage()

msg["Content-Type"] = response.headers.get("Content-Type")
if "Content-Type" in response.headers:
msg["Content-Type"] = response.headers["Content-Type"]

msg.set_default_type("application/octet-stream")

return msg.get_content_type()
Expand Down

0 comments on commit b7b8aef

Please sign in to comment.