mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix fault on reset_state in memory storage (#619)
This commit is contained in:
parent
64a7a781da
commit
2e207c636c
1 changed files with 1 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ class MemoryStorage(BaseStorage):
|
|||
self.data[chat][user]['bucket'].update(bucket, **kwargs)
|
||||
|
||||
def _cleanup(self, chat, user):
|
||||
chat, user = self.resolve_address(chat=chat, user=user)
|
||||
if self.data[chat][user] == {'state': None, 'data': {}, 'bucket': {}}:
|
||||
del self.data[chat][user]
|
||||
if not self.data[chat]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue