From bcf50171691731e38ec1e326ca02b824a2ea83b8 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Thu, 4 Sep 2025 12:20:37 +0200 Subject: [PATCH] Fix handling of expired team registration sessions A missing team registration should be treated as a valid expiration case, returning True instead of False to properly clean up sessions. --- tournaments/services/payment_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/services/payment_service.py b/tournaments/services/payment_service.py index 6ed1a9d..0dd8430 100644 --- a/tournaments/services/payment_service.py +++ b/tournaments/services/payment_service.py @@ -507,7 +507,7 @@ class PaymentService: except TeamRegistration.DoesNotExist: print(f"[EXPIRED SESSION] Team registration {team_registration_id} not found") - return False + return True except Exception as e: print(f"[EXPIRED SESSION] Error processing team registration: {str(e)}") return False