Skip to content

Commit

Permalink
[core] fix bug in hints option for csv parser
Browse files Browse the repository at this point in the history
Not every parser requires the 'hints' key, yet the csv parser was calling it
without a .get().  In the case of KV data, this would throw a KeyError.
  • Loading branch information
Jack Naglieri committed Mar 3, 2017
1 parent d52f538 commit 7cd45ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream_alert/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def parse(self):
- False if the data is not CSV or the columns do not match.
"""
schema = self.schema
hints = self.options['hints']
hints = self.options.get('hints')

hint_result = []
csv_payloads = []
Expand Down

0 comments on commit 7cd45ac

Please sign in to comment.