Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -326,11 +326,11 @@ def log_login(username):
|
|
326 |
}
|
327 |
try:
|
328 |
|
329 |
-
|
330 |
-
|
331 |
|
332 |
-
|
333 |
-
|
334 |
|
335 |
except requests.exceptions.HTTPError as http_error:
|
336 |
# Handle the HTTP error (e.g., log it or display an error message)
|
|
|
326 |
}
|
327 |
try:
|
328 |
|
329 |
+
# Post data to Airtable
|
330 |
+
response = requests.post(airtable_endpoint, headers=headers, json=data)
|
331 |
|
332 |
+
# Check for errors
|
333 |
+
response.raise_for_status()
|
334 |
|
335 |
except requests.exceptions.HTTPError as http_error:
|
336 |
# Handle the HTTP error (e.g., log it or display an error message)
|