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

[tor-commits] [bridgedb/master] Add MissingServerDescriptorDigest exception class.



commit 2d5d42dbcd04498435eae99f9682295ac354d706
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Thu Dec 11 03:43:44 2014 +0000

    Add MissingServerDescriptorDigest exception class.
---
 lib/bridgedb/bridges.py |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/bridgedb/bridges.py b/lib/bridgedb/bridges.py
index 6268f6d..459e86a 100644
--- a/lib/bridgedb/bridges.py
+++ b/lib/bridgedb/bridges.py
@@ -52,6 +52,12 @@ class MalformedPluggableTransport(MalformedBridgeInfo):
 class InvalidPluggableTransportIP(MalformedBridgeInfo):
     """Raised when a :class:`PluggableTransport` has an invalid address."""
 
+class MissingServerDescriptorDigest(MalformedBridgeInfo):
+    """Raised when the hash digest for an ``@type bridge-server-descriptor``
+    (which should be in the corresponding ``@type bridge-networkstatus``
+    document), was missing.
+    """
+
 class ServerDescriptorDigestMismatch(MalformedBridgeInfo):
     """Raised when the digest in an ``@type bridge-networkstatus`` document
     doesn't match the hash digest of the ``@type bridge-server-descriptor``'s



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