Do not link null callbacks for token proof check

This commit is contained in:
nolash 2021-10-14 15:31:58 +02:00
parent 4b8eae41f7
commit cc58735ff1
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -524,7 +524,10 @@ def verify_token_info(self, tokens, chain_spec_dict, success_callback, error_cal
],
queue=queue,
)
if success_callback != None:
s.link(success_callback)
if error_callback != None:
s.on_error(error_callback)
s.apply_async()