1
0

blockchain.py: generalise fork ids to get rid of conflicts

This commit is contained in:
SomberNight
2018-11-20 18:57:16 +01:00
parent a8e6eaa247
commit 141ff99580
9 changed files with 472 additions and 170 deletions

View File

@@ -125,7 +125,7 @@ class JsonDB(PrintError):
# perform atomic write on POSIX systems
try:
os.rename(temp_path, self.path)
except:
except OSError:
os.remove(self.path)
os.rename(temp_path, self.path)
os.chmod(self.path, mode)