mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
follow-up #4396: new 2fa wallets could not be created
This commit is contained in:
parent
141994ed1b
commit
cfc52e6441
1 changed files with 7 additions and 10 deletions
|
@ -578,17 +578,14 @@ class WalletStorage(PrintError):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def get_action(self):
|
def get_action(self):
|
||||||
if self.file_exists():
|
|
||||||
action = run_hook('get_action', self)
|
action = run_hook('get_action', self)
|
||||||
if action and self.requires_upgrade():
|
if self.file_exists() and self.requires_upgrade():
|
||||||
|
if action:
|
||||||
raise WalletFileException(_('Incomplete wallet files cannot be upgraded.'))
|
raise WalletFileException(_('Incomplete wallet files cannot be upgraded.'))
|
||||||
elif self.requires_upgrade():
|
|
||||||
return 'upgrade_storage'
|
return 'upgrade_storage'
|
||||||
elif action:
|
if action:
|
||||||
return action
|
return action
|
||||||
else:
|
if not self.file_exists():
|
||||||
return None
|
|
||||||
else:
|
|
||||||
return 'new'
|
return 'new'
|
||||||
|
|
||||||
def get_seed_version(self):
|
def get_seed_version(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue