Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Fix es #30

Merged
merged 3 commits into from
Jun 14, 2017
Merged

Fix es #30

merged 3 commits into from
Jun 14, 2017

Conversation

sabban
Copy link

@sabban sabban commented Jun 8, 2017

No description provided.

@sabban sabban requested a review from jvoisin June 8, 2017 14:59
self.client.bulk(body=items)
try:
self.client.bulk(body=items)
except:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please specify the exception :3

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. Eventually I will get used good practices.

@@ -191,9 +191,14 @@ def commit(self):
for x in entry.keys():
if isinstance(entry[x], basestring):
entry[x] = unicode(entry[x], errors='replace')
items.append(entry)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure about this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, elasticsearch api corrected this mistake by deleting duplicate events...

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok :)

@sabban sabban merged commit f6f11a1 into master Jun 14, 2017
@sabban sabban deleted the fix_es branch June 14, 2017 07:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants