diff --git a/lib/util.py b/lib/util.py index 201aa9784..cf7bc37a9 100644 --- a/lib/util.py +++ b/lib/util.py @@ -477,8 +477,8 @@ class Contacts(StoreDict): _type, addr = self[k] if _type == 'address': return addr - out = run_hook('resolve_address', k) - if out: - return out + out = run_hook('resolve_address', k) + if out: + return out raise Exception("invalid Bitcoin address", k)