- subscription, created = Subscription.objects.get_or_create(email=email)
- if not created and not subscription.active:
- subscription.active = True
- subscription.save()
- # Send some test email?
+ try:
+ validate_email(email)
+ except ValidationError:
+ pass
+ else:
+ subscription, created = Subscription.objects.get_or_create(email=email)
+ if not created and not subscription.active:
+ subscription.active = True
+ subscription.save()
+ # Send some test email?