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.
apikeys
Razmig Sarkissian 2 months ago
parent 31b87cea2f
commit bcf5017169
  1. 2
      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

Loading…
Cancel
Save