Fix `TypeError: 'module' object is not callable`
This commit is contained in:
parent
a9ce943293
commit
9bb0501ea8
|
@ -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"
|
||||||
|
|
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue