mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
parent
47e5bd653a
commit
3211d752c7
1 changed files with 2 additions and 0 deletions
|
@ -162,6 +162,8 @@ def _run_hook(name, always, *args):
|
||||||
results = []
|
results = []
|
||||||
f_list = hooks.get(name, [])
|
f_list = hooks.get(name, [])
|
||||||
for p, f in f_list:
|
for p, f in f_list:
|
||||||
|
if name == 'load_wallet':
|
||||||
|
p.wallet = args[0] # For for p.is_enabled() below
|
||||||
if always or p.is_enabled():
|
if always or p.is_enabled():
|
||||||
try:
|
try:
|
||||||
r = f(*args)
|
r = f(*args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue