[tor-commits] [bridgedb/master] Add new email handling Exception classes to bridgedb.Dist.
isis at torproject.org
isis at torproject.org
Fri May 16 18:52:52 UTC 2014
commit a5f709890f7da820aee8299efb99f00b396e980b
Author: Isis Lovecruft <isis at torproject.org>
Date: Mon May 5 18:45:15 2014 +0000
Add new email handling Exception classes to bridgedb.Dist.
---
lib/bridgedb/Dist.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/bridgedb/Dist.py b/lib/bridgedb/Dist.py
index 1596fd1..934c0b0 100644
--- a/lib/bridgedb/Dist.py
+++ b/lib/bridgedb/Dist.py
@@ -41,6 +41,12 @@ class IgnoreEmail(addr.BadEmail):
class TooSoonEmail(addr.BadEmail):
"""Raised when we got a request from this address too recently."""
+class EmailRequestedHelp(Exception):
+ """Raised when a client has emailed requesting help."""
+
+class EmailRequestedKey(Exception):
+ """Raised when an incoming email requested a copy of our GnuPG keys."""
+
def uniformMap(ip):
"""Map an IP to an arbitrary 'area' string, such that any two /24 addresses
More information about the tor-commits
mailing list