Skip to content

Commit

Permalink
Update get_crossmatch_data.py
Browse files Browse the repository at this point in the history
Deleted unnecesary if statement
  • Loading branch information
claudiomansillab authored Oct 22, 2024
1 parent a9b5af4 commit e007f80
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lightcurve/src/crossmatch_api/get_crossmatch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ def get_alerce_data(ra, dec, radius):
try:
# Make the GET request
response = requests.get(base_url, params=params)

# Check if the request was successful
if response.status_code == 200:
return response.json() # Return the JSON response
else:
return f"Error: Received status code {response.status_code}"

except requests.RequestException as e:
return f"Error: {str(e)}"

0 comments on commit e007f80

Please sign in to comment.