Skip to content

Commit 45fb776

Browse files
committed
Check address for null
1 parent d39000c commit 45fb776

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

HISTORY.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@ History
1111
* ``pxp_financial``
1212
* ``trustpay``
1313

14-
* Equivalent domain names are now normalized when ``hash_address`` is used.
14+
* Equivalent domain names are now normalized when ``hash_email`` is used.
1515
For example, ``googlemail.com`` will become ``gmail.com``.
1616
* Periods are now removed from ``gmail.com`` email address local parts when
17-
``hash_address`` is used. For example, ``f.o.o@gmail.com`` will become
17+
``hash_email`` is used. For example, ``f.o.o@gmail.com`` will become
1818
``foo@gmail.com``.
1919
* Fastmail alias subdomain email addresses are now normalized when
20-
``hash_address`` is used. For example, ``alias@user.fastmail.com`` will
20+
``hash_email`` is used. For example, ``alias@user.fastmail.com`` will
2121
become ``user@fastmail.com``.
2222
* Additional ``yahoo.com`` email addresses now have aliases removed from
23-
their local part when ``hash_address`` is used. For example,
23+
their local part when ``hash_email`` is used. For example,
2424
``foo-bar@yahoo.com`` will become ``foo@yahoo.com`` for additional
2525
``yahoo.com`` domains.
2626
* Duplicate ``.com`` s are now removed from email domain names when
27-
``hash_address`` is used. For example, ``example.com.com`` will become
27+
``hash_email`` is used. For example, ``example.com.com`` will become
2828
``example.com``.
2929
* Extraneous characters after ``.com`` are now removed from email domain
30-
names when ``hash_address`` is used. For example, ``example.comfoo`` will
30+
names when ``hash_email`` is used. For example, ``example.comfoo`` will
3131
become ``example.com``.
32-
* Certain ``.com`` typos are now normalized to ``.com`` when ``hash_address`` is
32+
* Certain ``.com`` typos are now normalized to ``.com`` when ``hash_email`` is
3333
used. For example, ``example.cam`` will become ``example.com``.
3434
* Additional ``gmail.com`` domain names with leading digits are now
35-
normalized when ``hash_address`` is used. For example, ``100gmail.com`` will
35+
normalized when ``hash_email`` is used. For example, ``100gmail.com`` will
3636
become ``gmail.com``.
37-
* Additional ``gmail.com`` typos are now normalized when ``hash_address`` is
37+
* Additional ``gmail.com`` typos are now normalized when ``hash_email`` is
3838
used. For example, ``gmali.com`` will become ``gmail.com``.
3939

4040
2.9.0 (2023-12-05)

minfraud/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def maybe_hash_email(transaction):
283283
return
284284

285285
address, domain = _clean_email(address)
286-
if not address:
286+
if address is None:
287287
return
288288

289289
if domain != "" and "domain" not in email:

0 commit comments

Comments
 (0)