mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Removed warnings.warn
This commit is contained in:
parent
d34e9c2faf
commit
3d878a99d2
1 changed files with 1 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ from __future__ import annotations
|
|||
|
||||
import io
|
||||
import typing
|
||||
import warnings
|
||||
from asyncio.log import logger
|
||||
from typing import TypeVar
|
||||
|
||||
|
|
@ -228,8 +227,7 @@ class TelegramObject(ContextInstanceMixin, metaclass=MetaTelegramObject):
|
|||
return self.props[key].set_value(self, value, self.conf.get('parent', None))
|
||||
self.values[key] = value
|
||||
|
||||
# Show and log a warning when Telegram silently adds new Fields
|
||||
warnings.warn(f"Field '{key}' doesn't exist in {self.__class__}")
|
||||
# Log warning when Telegram silently adds new Fields
|
||||
logger.warning(f"Field '{key}' doesn't exist in {self.__class__}")
|
||||
|
||||
def __contains__(self, item: str) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue