-
Notifications
You must be signed in to change notification settings - Fork 500
Fix bug in normalize_and_hash_email_address function #752
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
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
About the second commit, I've just realized that the function calls |
Question - are these changes just to address email address that don't have |
@BenRKarl The original function already tries to do so, but in a wrong way:
I've just moved the
|
@arnau126 ok great, sorry for the delay. Looks like these changes are being added to now-deleted files. Could you move them over to the new files where this validation occurs?
|
@BenRKarl |
First commit
If
email_address
has no"@"
in it, the function raisesIndexError list index out of range
in:because
email_parts
is a list with only one item.This PR fix this bug by moving the above line inside the if-block
if len(email_parts) > 1
.Second commit
I've added
strip
toemail_address
to honor the Enhanced Conversions doc which says: