projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"Fix" a flaky test and cleanup an unused import.
[python_utils.git]
/
persistent.py
diff --git
a/persistent.py
b/persistent.py
index f6ca0a0faa4bde09299db88d100fd1e9b8640f0a..8829d6de657c213845356b7c32caa2a644a1eb54 100644
(file)
--- a/
persistent.py
+++ b/
persistent.py
@@
-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.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:
logger.debug(f'Attempting to instantiate {cls.__name__} directly.')
self.instance = cls(*args, **kwargs)
else: