git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
can't blindly decode() a pickle, need to store as bytes
[nodemanager.git]
/
database.py
diff --git
a/database.py
b/database.py
index
04367f6
..
a7099bc
100644
(file)
--- a/
database.py
+++ b/
database.py
@@
-186,7
+186,7
@@
It proceeds to handle dump requests forever."""
db_lock.release()
try:
tools.write_file(
- DB_FILE, lambda f: f.write(db_pickle
.decode())
)
+ DB_FILE, lambda f: f.write(db_pickle
), binary=True
)
logger.log_database(db)
except:
logger.log_exc("database.start: failed to pickle/dump")