Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -213,7 +213,7 @@ if __name__ == "__main__":
|
|
| 213 |
|
| 214 |
# 2. Fetch Questions
|
| 215 |
print(f"Fetching questions from: {questions_url}")
|
| 216 |
-
|
| 217 |
response = requests.get(questions_url, timeout=15)
|
| 218 |
response.raise_for_status()
|
| 219 |
questions_data = response.json()
|
|
|
|
| 213 |
|
| 214 |
# 2. Fetch Questions
|
| 215 |
print(f"Fetching questions from: {questions_url}")
|
| 216 |
+
try:
|
| 217 |
response = requests.get(questions_url, timeout=15)
|
| 218 |
response.raise_for_status()
|
| 219 |
questions_data = response.json()
|