Fix `TypeError: 'module' object is not callable`

This commit is contained in:
Panoramic 2024-07-03 08:44:48 +03:00
parent a9ce943293
commit 9bb0501ea8
Signed by: Panoramic
GPG Key ID: 1630196630C6BE30
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ license = "AGPL-3.0-or-later"
readme = "README.md" readme = "README.md"
[tool.poetry.scripts] [tool.poetry.scripts]
vetting-bot = "vetting_bot:main" vetting-bot = "vetting_bot.main:run"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.11" python = "^3.11"

View File

@ -131,5 +131,6 @@ async def main():
await client.close() await client.close()
# Run the main function in an asyncio event loop def run():
asyncio.get_event_loop().run_until_complete(main()) # Run the main function in an asyncio event loop
asyncio.get_event_loop().run_until_complete(main())