SergeyO7 commited on
Commit
bdcd9fc
·
verified ·
1 Parent(s): f8c8593

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,6 +51,7 @@ async def check_n_load_attach(session: aiohttp.ClientSession, task_id: str, api_
51
  extension = ".mp3"
52
  elif "application/pdf" in content_type:
53
  extension = ".pdf"
 
54
  elif "text/x-python" in content_type:
55
  extension = ".py"
56
  else:
@@ -68,8 +69,7 @@ async def check_n_load_attach(session: aiohttp.ClientSession, task_id: str, api_
68
  else:
69
  print(f"No attachment found for task {task_id}")
70
  return None
71
- except aiohttp.ClientError as e
72
- :
73
  print(f"Error downloading attachment for task {task_id}: {str(e)}")
74
  return None
75
 
 
51
  extension = ".mp3"
52
  elif "application/pdf" in content_type:
53
  extension = ".pdf"
54
+
55
  elif "text/x-python" in content_type:
56
  extension = ".py"
57
  else:
 
69
  else:
70
  print(f"No attachment found for task {task_id}")
71
  return None
72
+ except aiohttp.ClientError as e:
 
73
  print(f"Error downloading attachment for task {task_id}: {str(e)}")
74
  return None
75