Dict are immutable, duh.
This commit is contained in:
parent
c6b8e4487d
commit
77cf1a6afe
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ class Module(ModuleManager.BaseModule):
|
|||
"Please provide a valid positive coin amount")
|
||||
|
||||
def _get_default_wallets(self, user):
|
||||
return user.get_setting("default-wallets", WALLET_DEFAULTS)
|
||||
return user.get_setting("default-wallets", WALLET_DEFAULTS.copy())
|
||||
def _set_default_wallet(self, user, type, wallet):
|
||||
default_wallets = self._get_default_wallets(user)
|
||||
default_wallets[type.lower()] = wallet.lower()
|
||||
|
|
Loading…
Reference in a new issue