From 23bfd56fc80fac38ece4273d8c0ebe678e458be3 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Mon, 15 Apr 2013 19:31:34 +0000 Subject: Add DatabaseNotConnected exception to alias_resolver.py. --- src/leap/mx/alias_resolver.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/leap') 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: -- cgit v1.2.3