do not fail when no documents have to by synced

This commit is contained in:
Frédéric Péters 2014-07-23 11:52:10 +02:00
parent b2aaa47f00
commit 4cda3b5b6d
1 changed files with 1 additions and 0 deletions

View File

@ -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: