Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions electrum/hw_wallet/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ class HardwareHandlerBase:
device: str

def get_wallet(self) -> Optional['Abstract_Wallet']:
if self.win is not None:
if hasattr(self.win, 'wallet'):
return self.win.wallet
win = self.win
if win is not None:
return getattr(win, 'wallet', None)

def get_gui_thread(self) -> Optional['threading.Thread']:
if self.win is not None:
Expand Down