Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -350,7 +350,7 @@ def send_email_with_attachment(recipient_email, subject, body, attachment_path):
|
|
350 |
def make_api_request(url, params):
|
351 |
"""Generic function to make API GET requests and return JSON data."""
|
352 |
try:
|
353 |
-
|
354 |
response = requests.get(url, params=params)
|
355 |
response.raise_for_status() # Raises an HTTPError if the response was an error
|
356 |
return response.json() # Return the parsed JSON data
|
|
|
350 |
def make_api_request(url, params):
|
351 |
"""Generic function to make API GET requests and return JSON data."""
|
352 |
try:
|
353 |
+
print(url)
|
354 |
response = requests.get(url, params=params)
|
355 |
response.raise_for_status() # Raises an HTTPError if the response was an error
|
356 |
return response.json() # Return the parsed JSON data
|