Skip to content

Commit

Permalink
Merge pull request #519 from biocore/csymons_metadata_20230621
Browse files Browse the repository at this point in the history
Cast response.status_code to string
  • Loading branch information
cassidysymons authored Jun 21, 2023
2 parents 2863746 + ad0465e commit bf07af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microsetta_private_api/util/google_geocoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def geocode_address(address):
response = requests.get(request_url)
if response.ok is False:
exception_msg = "Error connecting to Google Geocoding API."
exception_msg += " Status Code: " + response.status_code
exception_msg += " Status Code: " + str(response.status_code)
exception_msg += " Status Text: " + response.reason
raise Exception(exception_msg)

Expand Down

0 comments on commit bf07af1

Please sign in to comment.