SergeyO7 commited on
Commit
33cffad
·
verified ·
1 Parent(s): 5ad0078

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -34,8 +34,7 @@ token_bucket = Limiter(rate=TOKEN_BUCKET_REFILL_RATE, capacity=TOKEN_BUCKET_CAPA
34
  async def fetch_questions(session: aiohttp.ClientSession, questions_url: str) -> list:
35
  """Fetch questions asynchronously."""
36
  try:
37
- async with session.get(questions_url,
38
- timeout=15) as response:
39
  response.raise_for_status()
40
  questions_data = await response.json()
41
  if not questions_data:
 
34
  async def fetch_questions(session: aiohttp.ClientSession, questions_url: str) -> list:
35
  """Fetch questions asynchronously."""
36
  try:
37
+ async with session.get(questions_url, timeout=15) as response:
 
38
  response.raise_for_status()
39
  questions_data = await response.json()
40
  if not questions_data: