Spaces:
Running
Running
Update apis/Bubble_API_Calls.py
Browse files- apis/Bubble_API_Calls.py +3 -4
apis/Bubble_API_Calls.py
CHANGED
@@ -24,7 +24,7 @@ def fetch_linkedin_token_from_bubble(url_user_token_str: str) -> Optional[dict]:
|
|
24 |
bubble_api_key = os.environ.get(BUBBLE_API_KEY_PRIVATE_ENV_VAR)
|
25 |
|
26 |
if not bubble_api_key:
|
27 |
-
logger.error("Bubble API environment variables
|
28 |
return None
|
29 |
|
30 |
if not url_user_token_str or "not found" in url_user_token_str or "Could not access" in url_user_token_str:
|
@@ -81,10 +81,9 @@ def fetch_linkedin_posts_data_from_bubble(
|
|
81 |
Fetches data from the Bubble.io Data API, handling pagination to retrieve all results.
|
82 |
"""
|
83 |
bubble_api_key = os.environ.get(BUBBLE_API_KEY_PRIVATE_ENV_VAR)
|
84 |
-
api_endpoint = os.environ.get(BUBBLE_API_ENDPOINT_ENV_VAR)
|
85 |
|
86 |
-
if not bubble_api_key
|
87 |
-
error_msg = "Bubble API
|
88 |
logger.error(error_msg)
|
89 |
return None, error_msg
|
90 |
|
|
|
24 |
bubble_api_key = os.environ.get(BUBBLE_API_KEY_PRIVATE_ENV_VAR)
|
25 |
|
26 |
if not bubble_api_key:
|
27 |
+
logger.error("Bubble API environment variables key not set.")
|
28 |
return None
|
29 |
|
30 |
if not url_user_token_str or "not found" in url_user_token_str or "Could not access" in url_user_token_str:
|
|
|
81 |
Fetches data from the Bubble.io Data API, handling pagination to retrieve all results.
|
82 |
"""
|
83 |
bubble_api_key = os.environ.get(BUBBLE_API_KEY_PRIVATE_ENV_VAR)
|
|
|
84 |
|
85 |
+
if not bubble_api_key:
|
86 |
+
error_msg = "Bubble API not set."
|
87 |
logger.error(error_msg)
|
88 |
return None, error_msg
|
89 |
|