diff options
author | Isis Lovecruft <isis@torproject.org> | 2013-04-15 19:31:34 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2013-04-15 19:31:34 +0000 |
commit | 23bfd56fc80fac38ece4273d8c0ebe678e458be3 (patch) | |
tree | 9e12cd99efe4a91f69feaf81c3ba67c3f291b05c /src | |
parent | db49089b2f13d45a1f0fca5ae5cc52dfcc4eac2e (diff) |
Add DatabaseNotConnected exception to alias_resolver.py.
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/mx/alias_resolver.py | 4 |
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: |