projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clarify instructions for repopulation.
[python_utils.git]
/
arper.py
diff --git
a/arper.py
b/arper.py
index c0cc9f035af4367ce0c84a0e623a2ea6ae320699..a4e8d3e1196a1f683a24a9d43f4ec48fc8890253 100644
(file)
--- a/
arper.py
+++ b/
arper.py
@@
-128,8
+128,8
@@
class Arper(persistent.Persistent):
return cls(cached_state)
else:
msg = f'{cache_file} is invalid: only {len(cached_state)} entries. Deleting it.'
return cls(cached_state)
else:
msg = f'{cache_file} is invalid: only {len(cached_state)} entries. Deleting it.'
- warnings.warn(msg)
logger.warning(msg)
logger.warning(msg)
+ warnings.warn(msg, stacklevel=2)
os.remove(cache_file)
logger.debug('No usable saved state found')
return None
os.remove(cache_file)
logger.debug('No usable saved state found')
return None