File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,12 +168,12 @@ async def func_wrapper(*args, **kwargs):
168168 if 'wallet' in cmd .options :
169169 wallet_path = kwargs .pop ('wallet_path' , None ) # unit tests may set wallet and not wallet_path
170170 wallet = kwargs .get ('wallet' , None ) # run_offline_command sets both
171- if wallet is None :
171+ if wallet is None and wallet_path is not None :
172172 wallet = daemon .get_wallet (wallet_path )
173173 if wallet is None :
174174 raise UserFacingException ('wallet not loaded' )
175175 kwargs ['wallet' ] = wallet
176- if cmd .requires_password and password is None and wallet .has_password ():
176+ if cmd .requires_password and password is None and wallet and wallet .has_password ():
177177 password = wallet .get_unlocked_password ()
178178 if password :
179179 kwargs ['password' ] = password
You can’t perform that action at this time.
0 commit comments