diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..13dbf2d6 Binary files /dev/null and b/.DS_Store differ diff --git a/brightIDfaucet/celery.py b/brightIDfaucet/celery.py index 8e010675..94bfa6da 100644 --- a/brightIDfaucet/celery.py +++ b/brightIDfaucet/celery.py @@ -36,7 +36,7 @@ }, "update_tokentap_claim_for_verified_lightning_claims": { "task": "faucet.tasks.update_tokentap_claim_for_verified_lightning_claims", - "schedule": 3, + "schedule": 9, }, 'update-tokens-price': { "task": "faucet.tasks.update_tokens_price", diff --git a/faucet/tasks.py b/faucet/tasks.py index e5815d9f..9ae55e37 100644 --- a/faucet/tasks.py +++ b/faucet/tasks.py @@ -279,7 +279,8 @@ def process_verified_lighning_claim(gas_tap_claim_id): ) if not tokentap_lightning_claim: - raise Exception("No tokentap claim found for user") + print("No tokentap claim found for user") + return tokentap_lightning_claim.status = ClaimReceipt.VERIFIED tokentap_lightning_claim.tx_hash = claim.tx_hash @@ -308,7 +309,8 @@ def process_rejected_lighning_claim(gas_tap_claim_id): ) if not tokentap_lightning_claim: - raise Exception("No tokentap claim found for user") + print("No tokentap claim found for user") + return tokentap_lightning_claim.delete()