summaryrefslogtreecommitdiff
path: root/common/src/leap/soledad/common/l2db/remote/http_errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/leap/soledad/common/l2db/remote/http_errors.py')
-rw-r--r--common/src/leap/soledad/common/l2db/remote/http_errors.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/common/src/leap/soledad/common/l2db/remote/http_errors.py b/common/src/leap/soledad/common/l2db/remote/http_errors.py
index f6bd01d3..ee4cfefa 100644
--- a/common/src/leap/soledad/common/l2db/remote/http_errors.py
+++ b/common/src/leap/soledad/common/l2db/remote/http_errors.py
@@ -1,4 +1,5 @@
# Copyright 2011-2012 Canonical Ltd.
+# Copyright 2016 LEAP Encryption Access Project
#
# This file is part of u1db.
#
@@ -14,11 +15,11 @@
# You should have received a copy of the GNU Lesser General Public License
# along with u1db. If not, see <http://www.gnu.org/licenses/>.
-"""Information about the encoding of errors over HTTP."""
+"""
+Information about the encoding of errors over HTTP.
+"""
-from u1db import (
- errors,
- )
+from leap.soledad.common.l2db import errors
# error wire descriptions mapping to HTTP status codes
@@ -37,7 +38,7 @@ wire_description_to_status = dict([
(errors.InvalidReplicaUID.wire_description, 409),
(errors.InvalidTransactionId.wire_description, 409),
(errors.Unavailable.wire_description, 503),
-# without matching exception
+ # without matching exception
(errors.DOCUMENT_DELETED, 404)
])