From d9060272bc9b2a50c9c453576afdf38cdb01d106 Mon Sep 17 00:00:00 2001 From: georgianab Date: Tue, 29 Mar 2016 18:55:54 +0000 Subject: [PATCH] Add check in schema processor --- goodtables/processors/schema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goodtables/processors/schema.py b/goodtables/processors/schema.py index 25eb2e285a..1d8ababace 100644 --- a/goodtables/processors/schema.py +++ b/goodtables/processors/schema.py @@ -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])