Fix FSM storage and filter.

This commit is contained in:
Alex Root Junior 2018-06-27 01:13:53 +03:00
parent 3fb0a23db7
commit b4d8ac2c0a
4 changed files with 7 additions and 7 deletions

View file

@ -122,10 +122,5 @@ async def process_gender(message: types.Message):
await state.finish()
async def shutdown(dispatcher: Dispatcher):
await dispatcher.storage.close()
await dispatcher.storage.wait_closed()
if __name__ == '__main__':
executor.start_polling(dp, loop=loop, skip_updates=True, on_shutdown=shutdown)
executor.start_polling(dp, loop=loop, skip_updates=True)