projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c13683
)
Slightly improve the error message when a stats.pickle file cannot be read.
author
david-sarah
<david-sarah@jacaranda.org>
Tue, 3 Jul 2012 14:45:22 +0000
(14:45 +0000)
committer
david-sarah
<david-sarah@jacaranda.org>
Tue, 3 Jul 2012 14:45:22 +0000
(14:45 +0000)
src/allmydata/stats.py
patch
|
blob
|
history
diff --git
a/src/allmydata/stats.py
b/src/allmydata/stats.py
index ea0a7f85d850dacd74584ecdfa3dd2e5e08d8155..7db323ba5ce68b2fe30101cb0dc47c1fc0188add 100644
(file)
--- a/
src/allmydata/stats.py
+++ b/
src/allmydata/stats.py
@@
-256,7
+256,8
@@
class PickleStatsGatherer(StdOutStatsGatherer):
try:
self.gathered_stats = pickle.load(f)
except Exception:
- print ("Error while attempting to load pickle file %s.\nYou may need to delete this file.\n" %
+ print ("Error while attempting to load pickle file %s.\n"
+ "You may need to restore this file from a backup, or delete it if no backup is available.\n" %
quote_output(os.path.abspath(self.picklefile)))
raise
f.close()