summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorJefferson Stachelski <jstachel@thoughtworks.com>2015-12-15 16:32:24 -0200
committerJefferson Stachelski <jstachel@thoughtworks.com>2015-12-15 16:32:24 -0200
commit68780aa001d6e805133232d0699fcb8d83c22f03 (patch)
treed98b35d86d4d1222276af4aec39043708ebc78c4 /service/pixelated
parent191219451ab86db6fc5600005b0b7161a3ed71ee (diff)
Removed not used soledad monkey patch
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/extensions/soledad_sync_exception.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/service/pixelated/extensions/soledad_sync_exception.py b/service/pixelated/extensions/soledad_sync_exception.py
deleted file mode 100644
index c3ef5176..00000000
--- a/service/pixelated/extensions/soledad_sync_exception.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import leap.soledad.client as client
-import urlparse
-from leap.soledad.client.events import (
- SOLEDAD_DONE_DATA_SYNC,
- signal
-)
-
-
-def patched_sync(self, defer_decryption=True):
- if self._db:
- try:
- local_gen = self._db.sync(
- urlparse.urljoin(self.server_url, 'user-%s' % self._uuid),
- creds=self._creds, autocreate=False,
- defer_decryption=defer_decryption)
- signal(SOLEDAD_DONE_DATA_SYNC, self._uuid)
- return local_gen
- except Exception as e:
- client.logger.error("Soledad exception when syncing: %s - %s" % (e.__class__.__name__, e.message))
-
-
-# client.Soledad.sync = patched_sync