Skip to content

Commit

Permalink
[FIX] added a missing parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
dutta-alankar committed Apr 28, 2024
1 parent ab071e8 commit 058a43c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astro_plasma/core/download_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def fetch_list_from_url(link_list_url: str) -> List[str]:
# print(link_list_url)
response = requests.get(link_list_url, stream=True)
if response.status_code != 200:
sys.exit(f"Problem communicating with dataserver! (error code: {response.status_code}")
sys.exit(f"Problem communicating with dataserver! (error code: {response.status_code})")
# print(response)
links = response.content.decode("utf-8").split("\n")
return links
Expand All @@ -36,7 +36,7 @@ def get_filename(url: str) -> str:
try:
with requests.get(url, stream=True) as req:
if req.status_code != 200:
sys.exit(f"Problem communicating with dataserver! (error code: {req.status_code}")
sys.exit(f"Problem communicating with dataserver! (error code: {req.status_code})")
if content_disposition := req.headers.get("Content-Disposition"):
param, options = werkzeug.http.parse_options_header(content_disposition)
if param == "attachment" and (filename := options.get("filename")):
Expand Down

0 comments on commit 058a43c

Please sign in to comment.