From 90176f28065391b59fab4fa031403878cdd3d633 Mon Sep 17 00:00:00 2001 From: Louis Holbrook Date: Thu, 14 Oct 2021 13:42:09 +0000 Subject: [PATCH] bug: Do not call none callbacks on token proof check --- apps/cic-eth/cic_eth/eth/erc20.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/cic-eth/cic_eth/eth/erc20.py b/apps/cic-eth/cic_eth/eth/erc20.py index 4a65adc..4fbe2e5 100644 --- a/apps/cic-eth/cic_eth/eth/erc20.py +++ b/apps/cic-eth/cic_eth/eth/erc20.py @@ -524,8 +524,11 @@ def verify_token_info(self, tokens, chain_spec_dict, success_callback, error_cal ], queue=queue, ) - s.link(success_callback) - s.on_error(error_callback) + + if success_callback != None: + s.link(success_callback) + if error_callback != None: + s.on_error(error_callback) s.apply_async() return tokens