mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Fixed overlapping of names in context module.
This commit is contained in:
parent
221ce362fc
commit
a18ea82974
1 changed files with 4 additions and 4 deletions
|
|
@ -46,10 +46,10 @@ def get_current_state() -> typing.Dict:
|
|||
:rtype: :obj:`dict`
|
||||
"""
|
||||
task = asyncio.Task.current_task()
|
||||
context = getattr(task, 'context', None)
|
||||
if context is None:
|
||||
context = task.context = {}
|
||||
return context
|
||||
context_ = getattr(task, 'context', None)
|
||||
if context_ is None:
|
||||
context_ = task.context = {}
|
||||
return context_
|
||||
|
||||
|
||||
def get_value(key, default=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue