randydev commited on
Commit
7230d56
·
verified ·
1 Parent(s): d4e7135

Update Akeno/__main__.py

Browse files
Files changed (1) hide show
  1. Akeno/__main__.py +5 -4
Akeno/__main__.py CHANGED
@@ -56,11 +56,12 @@ async def main():
56
  except Exception as e:
57
  LOGS.error(f"Error in main: {e}")
58
  finally:
59
- await aiohttpsession.close()
60
- tasks = asyncio.all_tasks()
61
- for task in tasks:
 
 
62
  task.cancel()
63
- await asyncio.gather(*tasks, return_exceptions=True)
64
  LOGS.info("All tasks completed successfully!")
65
 
66
  if __name__ == "__main__":
 
56
  except Exception as e:
57
  LOGS.error(f"Error in main: {e}")
58
  finally:
59
+ await asyncio.gather(
60
+ aiohttpsession.close()
61
+ )
62
+
63
+ for task in asyncio.all_tasks():
64
  task.cancel()
 
65
  LOGS.info("All tasks completed successfully!")
66
 
67
  if __name__ == "__main__":