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

[tor-commits] [bridgedb/develop] Add new email handling Exception classes to bridgedb.Dist.



commit a5f709890f7da820aee8299efb99f00b396e980b
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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



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