Skip to content

Commit

Permalink
reduce indexing error to a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lat1le committed Jul 5, 2016
1 parent 387e42f commit 52211c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datacube/index/_datasets.py
Expand Up @@ -283,8 +283,8 @@ def add(self, dataset, skip_sources=False):
was_inserted = self._db.insert_dataset(dataset.metadata_doc, dataset.id, dataset.type.id)
for classifier, source_dataset in dataset.sources.items():
self._db.insert_dataset_source(classifier, dataset.id, source_dataset.id)
except DuplicateRecordError:
_LOG.exception('')
except DuplicateRecordError as e:
_LOG.warning(str(e))

if not was_inserted:
existing = self.get(dataset.id)
Expand All @@ -300,8 +300,8 @@ def add(self, dataset, skip_sources=False):
if dataset.local_uri:
try:
self._db.ensure_dataset_location(dataset.id, dataset.local_uri)
except DuplicateRecordError:
_LOG.exception('')
except DuplicateRecordError as e:
_LOG.warning(str(e))

return dataset

Expand Down

0 comments on commit 52211c7

Please sign in to comment.