django-sendgrid-v5 icon indicating copy to clipboard operation
django-sendgrid-v5 copied to clipboard

TypeError: __init__() got an unexpected keyword argument 'providing_args'

Open halilkabaca opened this issue 7 months ago • 3 comments

If you are getting this error, it is because Django 4 seems to have removed this argument.

Changing the line on /sendgrid_backend/signals.py

from: sendgrid_email_sent = django.dispatch.Signal(providing_args=["message", "fail_flag"])

to: sendgrid_email_sent = django.dispatch.Signal()

fixes the problem for me.

My Environment: Python3 version: 3.8.10 Django version: 4.1.8

halilkabaca avatar Jul 09 '24 11:07 halilkabaca