X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=persistent.py;h=8829d6de657c213845356b7c32caa2a644a1eb54;hb=dafadbc23be771d8868b8db335dda9e385ce2e12;hp=83e6900cc18471ae44503a14f3184a2827420190;hpb=55a3172e37855f388b9ba0dfc91641a6c9ad1376;p=python_utils.git diff --git a/persistent.py b/persistent.py index 83e6900..8829d6d 100644 --- a/persistent.py +++ b/persistent.py @@ -7,7 +7,6 @@ import enum import functools import logging from typing import Any -import warnings import file_utils @@ -146,7 +145,6 @@ class persistent_autoloaded_singleton(object): if not self.instance: msg = 'Loading from cache failed.' logger.warning(msg) - warnings.warn(msg, stacklevel=2) logger.debug(f'Attempting to instantiate {cls.__name__} directly.') self.instance = cls(*args, **kwargs) else: