Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
halilkabaca opened this issue Jul 9, 2024 · 3 comments

Comments

@halilkabaca
Copy link

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

@sklarsa
Copy link
Owner

sklarsa commented Jul 9, 2024

Thanks for reporting the issue! Do you mind making a PR to fix this? With a feature flag for the Django version?

@halilkabaca
Copy link
Author

I must have been using an old version because I see it's already done in master long time ago. However, I had installed it using pip install django-sendgrid-v5 could that be still old somehow?

@sklarsa
Copy link
Owner

sklarsa commented Jul 15, 2024

Looks like version 1.2.3 is released to PyPi and should have all relevant commits from master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants