[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/develop] Add docstring note that b.p.a.normalizeEmail can raise UnsupportedDomain.



commit ee770c235193d70516e13d6fe9f7674058e8756f
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Mon Jun 9 19:42:05 2014 +0000

    Add docstring note that b.p.a.normalizeEmail can raise UnsupportedDomain.
---
 lib/bridgedb/parse/addr.py |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/bridgedb/parse/addr.py b/lib/bridgedb/parse/addr.py
index a354387..f4cd805 100644
--- a/lib/bridgedb/parse/addr.py
+++ b/lib/bridgedb/parse/addr.py
@@ -440,6 +440,8 @@ def normalizeEmail(emailaddr, domainmap, domainrules, ignorePlus=True):
         ``blackhole+kerr@xxxxxxxxxxxxxx`` is an alias for
         ``blackhole@xxxxxxxxxxxxxx``, and remove everything after the first
         ``'+'`` character.
+    :raises UnsupportedDomain: if the email address originated from a domain
+        that we do not explicitly support.
     :raises BadEmail: if the email address could not be parsed or validated.
     :rtype: str
     :returns: The validated, normalised email address, if it was from a



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits