summaryrefslogtreecommitdiff
path: root/src/leap/soledad
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-05-25 10:34:14 -0300
committerdrebs <drebs@leap.se>2013-05-25 11:20:21 -0300
commitfdb52571378d1e6d522a74ad29833114a7eccd2e (patch)
tree596b5f3f40f3dea4d0d910dc1b066d5c0e5dc1f3 /src/leap/soledad
parentd022428a695ba5c499fcd0c8a9681962c006b8e8 (diff)
Remove unneeded exceptions.
Diffstat (limited to 'src/leap/soledad')
-rw-r--r--src/leap/soledad/__init__.py21
-rw-r--r--src/leap/soledad/tests/test_crypto.py2
2 files changed, 1 insertions, 22 deletions
diff --git a/src/leap/soledad/__init__.py b/src/leap/soledad/__init__.py
index c9bf3f76..b847364f 100644
--- a/src/leap/soledad/__init__.py
+++ b/src/leap/soledad/__init__.py
@@ -73,27 +73,6 @@ Soledad client and server.
SECRETS_DOC_ID_HASH_PREFIX = 'uuid-'
-#
-# Exceptions
-#
-
-class KeyDoesNotExist(Exception):
- """
- Soledad attempted to find a key that does not exist locally.
- """
-
-
-class KeyAlreadyExists(Exception):
- """
- Soledad attempted to create a key that already exists locally.
- """
-
-
-class NotADirectory(Exception):
- """
- Expected a path for a directory but got some other thing.
- """
-
#
# Soledad: local encrypted storage and remote encrypted sync.
diff --git a/src/leap/soledad/tests/test_crypto.py b/src/leap/soledad/tests/test_crypto.py
index d35fc1c1..72eac6eb 100644
--- a/src/leap/soledad/tests/test_crypto.py
+++ b/src/leap/soledad/tests/test_crypto.py
@@ -44,7 +44,7 @@ from leap.soledad.backends.leap_backend import (
WrongMac,
)
from leap.soledad.backends.couch import CouchDatabase
-from leap.soledad import KeyAlreadyExists, Soledad
+from leap.soledad import Soledad
from leap.soledad.crypto import SoledadCrypto
from leap.soledad.tests import BaseSoledadTest
from leap.soledad.tests.test_couch import CouchDBTestCase