From 5914f47d4f1f3cad1429b11ddce467e7cc65aedb Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 31 Oct 2013 13:41:02 -0200 Subject: Fix dict representation so it works on python 2.6. --- common/src/leap/soledad/common/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/src/leap/soledad/common/errors.py b/common/src/leap/soledad/common/errors.py index 45433627..7c2d7296 100644 --- a/common/src/leap/soledad/common/errors.py +++ b/common/src/leap/soledad/common/errors.py @@ -61,9 +61,9 @@ class AlreadyLockedError(errors.U1DBError): # maps. for e in [InvalidTokenError, NotLockedError, AlreadyLockedError]: http_errors.wire_description_to_status.update({ - (e.wire_description, e.status)}) + e.wire_description: e.status}) errors.wire_description_to_exc.update({ - (e.wire_description, e)}) + e.wire_description: e}) # u1db error statuses also have to be updated http_errors.ERROR_STATUSES = set( -- cgit v1.2.3