diff --git a/themis/importexport/sync.py b/themis/importexport/sync.py index 8a70a6d..5e0cb8d 100644 --- a/themis/importexport/sync.py +++ b/themis/importexport/sync.py @@ -207,7 +207,11 @@ class SyncFromThemis(UtilityView): for count, document_url in enumerate(documents): log.info('loading %s' % document_url) - data = json.load(self.urlopen('%s/json' % document_url)) + try: + data = json.load(self.urlopen('%s/json' % document_url)) + except urllib2.HTTPError as e: + logging.info('failed to load (%r)' % e) + continue new_id = data.get('id') is_question = False