Skip to content

Commit

Permalink
Add check in schema processor
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiana-b committed Mar 29, 2016
1 parent 6e0b115 commit d906027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion goodtables/processors/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ def run_row(self, headers, index, row):
if self.fail_fast:
return valid, headers, index, row

if constraints.get('unique') is True:
if constraints is not None and \
constraints.get('unique') is True:

if not self._uniques.get(column_name):
self._uniques[column_name] = set([column_value])
Expand Down

0 comments on commit d906027

Please sign in to comment.