randydev commited on
Commit
2447b26
1 Parent(s): 2e29a62

Update chatbot/__main__.py

Browse files
Files changed (1) hide show
  1. chatbot/__main__.py +2 -1
chatbot/__main__.py CHANGED
@@ -36,6 +36,8 @@ logging.getLogger("pyrogram.syncer").setLevel(logging.WARNING)
36
  logging.getLogger("pyrogram.client").setLevel(logging.WARNING)
37
  loop = asyncio.get_event_loop()
38
 
 
 
39
  async def main():
40
  try:
41
  await db.connect()
@@ -52,7 +54,6 @@ async def main():
52
  LOGS.info("All tasks completed successfully!")
53
 
54
  if __name__ == "__main__":
55
- install()
56
  with closing(loop):
57
  with suppress(asyncio.exceptions.CancelledError):
58
  loop.run_until_complete(main())
 
36
  logging.getLogger("pyrogram.client").setLevel(logging.WARNING)
37
  loop = asyncio.get_event_loop()
38
 
39
+ install()
40
+
41
  async def main():
42
  try:
43
  await db.connect()
 
54
  LOGS.info("All tasks completed successfully!")
55
 
56
  if __name__ == "__main__":
 
57
  with closing(loop):
58
  with suppress(asyncio.exceptions.CancelledError):
59
  loop.run_until_complete(main())