def __init__(self, fail_silently=False, **kwargs):
        super(SendGridBackend, self).__init__(fail_silently=fail_silently)
        self.api_key = getattr(settings, "SENDGRID_API_KEY", None)

        if self.api_key is None:
            raise ImproperlyConfigured('''SENDGRID_API_KEY not declared in settings.py''')

        self.client = sendgrid.SendGridClient(
            self.api_key,
            raise_errors=not fail_silently)
dataset/ETHPy150Open crowdresearch/crowdsource-platform/crowdsourcing/backends/sendgrid_backend.py/SendGridBackend.__init__/original