CanerCoban commited on
Commit
265f8c4
·
verified ·
1 Parent(s): 373fdf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,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:
 
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: