mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix fsmcontextproxy update (#755)
* Create test case for invalid 'FSMContextProxy.update()' function * Fix invalid 'FSMContextProxy.update()' function * Verify that written data has been stored and read back correctly
This commit is contained in:
parent
bccfca7cae
commit
d646e19852
2 changed files with 16 additions and 0 deletions
|
|
@ -408,6 +408,8 @@ class FSMContextProxy:
|
|||
def update(self, data=None, **kwargs):
|
||||
self._check_closed()
|
||||
|
||||
if data is None:
|
||||
data = {}
|
||||
self._data.update(data, **kwargs)
|
||||
|
||||
def pop(self, key, default=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue