mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
follow-up prev
This commit is contained in:
parent
58c2c15266
commit
beb9f63274
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ class JsonDB(PrintError):
|
|||
os.fsync(f.fileno())
|
||||
|
||||
mode = os.stat(self.path).st_mode if self.file_exists() else stat.S_IREAD | stat.S_IWRITE
|
||||
if not file_exists():
|
||||
if not self.file_exists():
|
||||
assert not os.path.exists(self.path)
|
||||
os.replace(temp_path, self.path)
|
||||
os.chmod(self.path, mode)
|
||||
|
|
Loading…
Add table
Reference in a new issue