summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2013-04-15 19:31:34 +0000
committerIsis Lovecruft <isis@torproject.org>2013-04-15 19:31:34 +0000
commit23bfd56fc80fac38ece4273d8c0ebe678e458be3 (patch)
tree9e12cd99efe4a91f69feaf81c3ba67c3f291b05c /src/leap
parentdb49089b2f13d45a1f0fca5ae5cc52dfcc4eac2e (diff)
Add DatabaseNotConnected exception to alias_resolver.py.
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/mx/alias_resolver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/mx/alias_resolver.py b/src/leap/mx/alias_resolver.py
index d8d4646..30d8ee3 100644
--- a/src/leap/mx/alias_resolver.py
+++ b/src/leap/mx/alias_resolver.py
@@ -45,6 +45,10 @@ def createUUID(alias):
"""
return uuid.uuid5(uuid.NAMESPACE_URL, str(alias))
+
+class DatabaseNotConnected(Exception):
+ """Raised when not currently connected to a database."""
+
class StatusCodes(object):
"""
The Postfix manual states: