mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
fix lint
This commit is contained in:
parent
3924b28cc3
commit
1dc2f0458b
1 changed files with 16 additions and 19 deletions
|
@ -1426,10 +1426,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
Returns:
|
Returns:
|
||||||
(str) data
|
(str) data
|
||||||
"""
|
"""
|
||||||
|
assert not data.strip().startswith("{"), "unencrypted wallet import is not implemented yet"
|
||||||
if data.strip().startswith("{"):
|
|
||||||
raise NotImplementedError("unencrypted wallet import is not implemented yet")
|
|
||||||
else:
|
|
||||||
wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
|
wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
|
||||||
added_accounts, merged_accounts = wallet.merge(self.wallet_manager, password, data)
|
added_accounts, merged_accounts = wallet.merge(self.wallet_manager, password, data)
|
||||||
for new_account in itertools.chain(added_accounts, merged_accounts):
|
for new_account in itertools.chain(added_accounts, merged_accounts):
|
||||||
|
|
Loading…
Add table
Reference in a new issue