1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 23:37:14 +03:00

Adding pkg_resources exception to DeprecationWarning

This commit is contained in:
Bruno Marques 2024-06-09 20:07:13 +01:00
parent b0e682f66c
commit 192ba5f8f2

View File

@ -101,6 +101,8 @@ logging.Logger.trace = lambda self, message, *args, **kwargs: self._log( # type
logging.Formatter.converter = gmtime
warnings.simplefilter('default', DeprecationWarning)
# TODO remove after infi.systray drops pkg_resources
warnings.filterwarnings('ignore', '.*pkg_resources', DeprecationWarning)
def _trace_if(self: logging.Logger, condition: str, message: str, *args, **kwargs) -> None: