Skip to content

Commit

Permalink
make http response more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
rugeli committed Mar 29, 2024
1 parent 4f2ef35 commit 173595f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cellpack/autopack/DBRecipeHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ def validate_existence(self, url):
Validate the existence of an S3 object by checking if the URL is accessible.
Returns True if the URL is accessible.
"""
response = requests.head(url)
return response.status_code == 200
return requests.head(url).status_code == requests.codes.ok


class DBUploader(object):
Expand Down

0 comments on commit 173595f

Please sign in to comment.