Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -278,7 +278,7 @@ def log_login(username):
|
|
278 |
# Check for errors
|
279 |
response.raise_for_status()
|
280 |
|
281 |
-
|
282 |
# Handle the HTTP error (e.g., log it or display an error message)
|
283 |
print(f"HTTP error occurred: {http_error}")
|
284 |
|
|
|
278 |
# Check for errors
|
279 |
response.raise_for_status()
|
280 |
|
281 |
+
except requests.exceptions.HTTPError as http_error:
|
282 |
# Handle the HTTP error (e.g., log it or display an error message)
|
283 |
print(f"HTTP error occurred: {http_error}")
|
284 |
|