1
0

call load_wallet and close_wallet for each plugin

This commit is contained in:
ThomasV
2015-01-26 20:42:32 +01:00
parent 9d40fb2ea8
commit dda4a0fcb3
3 changed files with 24 additions and 12 deletions

View File

@@ -93,7 +93,7 @@ class Plugin(BasePlugin):
@hook
def close_wallet(self):
print_error("trezor: clear session")
if self.wallet.client:
if self.wallet and self.wallet.client:
self.wallet.client.clear_session()
@hook