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

cast first arg to string for sup email #4991

Merged
merged 1 commit into from
Aug 8, 2019
Merged

cast first arg to string for sup email #4991

merged 1 commit into from
Aug 8, 2019

Conversation

danlipert
Copy link
Contributor

fix login

@danlipert danlipert merged commit 27488df into master Aug 8, 2019
@@ -205,7 +205,7 @@ def get_or_save_email_subscriber(email, source, send_slack_invite=True, profile=
# Prevent syncing for those who match the suppression list
suppressions = EmailSupressionList.objects.all()
for suppression in suppressions:
if re.match(suppression.email, email):
if re.match(str(suppression.email), email):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't suppression return a string ? or are we just being extra safe ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its an "almost string", some kind of custom email address object that the regex library didn't like

@thelostone-mc thelostone-mc deleted the fix-regex-arg branch June 27, 2020 00:44
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

Successfully merging this pull request may close these issues.

2 participants