Skip to content

Commit

Permalink
fix bug on checking gnps website status
Browse files Browse the repository at this point in the history
add `follow_redirects` to get the actual status of gnps website
  • Loading branch information
CunliangGeng committed Mar 21, 2024
1 parent a38ecc4 commit 5c1a557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/metabolomics/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def gnps_website_is_down():
"""Check if the GNPS website is down."""
gnps_url = "https://gnps.ucsd.edu"
try:
r = httpx.get(gnps_url)
r = httpx.get(gnps_url, follow_redirects=True)
if r.is_success:
return False
else:
Expand Down

0 comments on commit 5c1a557

Please sign in to comment.