URI: 
       tadd comment in storage._write - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 8e4fe051d32481a5d0cb130f9b8f5452ec3898a4
   DIR parent cefa4762ba904ef92d32b4c90005013dd7a7ac4a
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Tue, 10 Sep 2019 09:25:42 +0200
       
       add comment in storage._write
       
       Diffstat:
         M electrum/storage.py                 |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
   DIR diff --git a/electrum/storage.py b/electrum/storage.py
       t@@ -106,6 +106,7 @@ class WalletStorage(Logger):
                    os.fsync(f.fileno())
        
                mode = os.stat(self.path).st_mode if self.file_exists() else stat.S_IREAD | stat.S_IWRITE
       +        # assert that wallet file does not exist, to prevent wallet corruption (see issue #5082)
                if not self.file_exists():
                    assert not os.path.exists(self.path)
                os.replace(temp_path, self.path)