SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
4 deletions
-
electrum/storage.py
|
|
@ -87,12 +87,10 @@ class WalletStorage(Logger): |
|
|
|
f.flush() |
|
|
|
os.fsync(f.fileno()) |
|
|
|
|
|
|
|
default_mode = stat.S_IREAD | stat.S_IWRITE |
|
|
|
try: |
|
|
|
mode = os.stat(self.path).st_mode if self.file_exists() else default_mode |
|
|
|
mode = os.stat(self.path).st_mode |
|
|
|
except FileNotFoundError: |
|
|
|
# user might have deleted/renamed file while running |
|
|
|
mode = default_mode |
|
|
|
mode = 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(): |
|
|
|