From 4cda3b5b6deabfec8aa3123e51939d167544b879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 23 Jul 2014 11:52:10 +0200 Subject: [PATCH] do not fail when no documents have to by synced --- themis/importexport/sync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/themis/importexport/sync.py b/themis/importexport/sync.py index 03be64d..e5d9eab 100644 --- a/themis/importexport/sync.py +++ b/themis/importexport/sync.py @@ -207,6 +207,7 @@ class SyncFromThemis(UtilityView): documents = json.load(self.urlopen('%s/@@listDocuments%s' % (self.src_url, qs))) log.info('loading documents list from %s -> DONE' % self.src_url) + count = 0 for count, document_url in enumerate(documents): log.info('loading %s' % document_url) try: