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

isis at torproject.org isis at torproject.org
Tue Jul 8 13:05:02 UTC 2014


commit ee770c235193d70516e13d6fe9f7674058e8756f
Author: Isis Lovecruft <isis at torproject.org>
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 at torproject.org`` is an alias for
         ``blackhole at torproject.org``, 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





More information about the tor-commits mailing list