mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix Dispatcher.release_key (#908)
del bucker['key'] raises KeyError: 'key'
This commit is contained in:
parent
bad6d8613a
commit
8d58ed909d
1 changed files with 1 additions and 1 deletions
|
|
@ -1367,7 +1367,7 @@ class Dispatcher(DataMixin, ContextInstanceMixin):
|
|||
|
||||
bucket = await self.storage.get_bucket(chat=chat_id, user=user_id)
|
||||
if bucket and key in bucket:
|
||||
del bucket['key']
|
||||
del bucket[key]
|
||||
await self.storage.set_bucket(chat=chat_id, user=user_id, bucket=bucket)
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue