Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
162 |
print("Fetched questions list is empty.")
|
163 |
return "Fetched questions list is empty or invalid format.", None
|
164 |
print(f"Fetched {len(question_data)} questions.")
|
165 |
-
except requests.exceptions
|
166 |
print(f"Error fetching questions: {e}")
|
167 |
return f"Error fetching questions: {e}", None
|
168 |
except reqests.exceptions.JSONDecodeError as e:
|
|
|
162 |
print("Fetched questions list is empty.")
|
163 |
return "Fetched questions list is empty or invalid format.", None
|
164 |
print(f"Fetched {len(question_data)} questions.")
|
165 |
+
except requests.exceptions.RequestException as e:
|
166 |
print(f"Error fetching questions: {e}")
|
167 |
return f"Error fetching questions: {e}", None
|
168 |
except reqests.exceptions.JSONDecodeError as e:
|