mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
fix(sessions):
make timeout deleter more clever in particular cases
This commit is contained in:
parent
df4ba87dfc
commit
0aa8069dc4
1 changed files with 2 additions and 1 deletions
|
|
@ -59,7 +59,8 @@ class BaseSession(abc.ABC):
|
|||
|
||||
@timeout.deleter
|
||||
def timeout(self) -> None:
|
||||
del self._timeout
|
||||
if hasattr(self, "_timeout"):
|
||||
del self._timeout
|
||||
|
||||
@classmethod
|
||||
def raise_for_status(cls, response: Response[T]) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue