make db optional
This commit is contained in:
parent
3412c5c0b9
commit
f396806175
1 changed files with 1 additions and 1 deletions
2
memed.py
2
memed.py
|
@ -170,7 +170,7 @@ if __name__ == '__main__':
|
|||
coro = asyncio.start_unix_server(handle_client, sys.argv[1],
|
||||
loop=loop)
|
||||
|
||||
db = loop.run_until_complete(asyncpg.create_pool(**config.db))
|
||||
db = loop.create_task(asyncpg.create_pool(**config.db))
|
||||
server = loop.run_until_complete(coro)
|
||||
|
||||
if config.bot_token:
|
||||
|
|
Loading…
Reference in a new issue