Wait for both streams to end.
[python_utils.git] / persistent.py
index f6ca0a0faa4bde09299db88d100fd1e9b8640f0a..8829d6de657c213845356b7c32caa2a644a1eb54 100644 (file)
@@ -143,7 +143,8 @@ class persistent_autoloaded_singleton(object):
             logger.debug(f'Attempting to load {cls.__name__} from persisted state.')
             self.instance = cls.load()
             if not self.instance:
-                logger.warning('Loading from cache failed.')
+                msg = 'Loading from cache failed.'
+                logger.warning(msg)
                 logger.debug(f'Attempting to instantiate {cls.__name__} directly.')
                 self.instance = cls(*args, **kwargs)
             else: