Traceback (most recent call last):


 "/home/noone/miniconda3/envs/unique_constraint_sample/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute

return self.cursor.execute(sql, params)


 "/home/noone/miniconda3/envs/unique_constraint_sample/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 383, in execute

return Database.Cursor.execute(self, query, params)
sqlite3.IntegrityError: UNIQUE constraint failed: app_foo.f1, app_foo.f2

Traceback (most recent call last):


 "c:\users\username\.virtualenvs\c7n-0.9.1-4h5kzyle\lib\site-packages\c7n\policy.py", line 291, in run

resources = self.policy.resource_manager.resources()


 "c:\users\username\.virtualenvs\c7n-0.9.1-4h5kzyle\lib\site-packages\c7n\resources\glue.py", line 516, in resources

return self.filter_resources(self._get_catalog_encryption_settings())


 "c:\users\username\.virtualenvs\c7n-0.9.1-4h5kzyle\lib\site-packages\c7n\manager.py", line 109, in filter_resources

resources = f.process(resources, event)


 "c:\users\username\.virtualenvs\c7n-0.9.1-4h5kzyle\lib\site-packages\c7n\filters\core.py", line 258, in process

return self.process_set(resources, event)


 "c:\users\username\.virtualenvs\c7n-0.9.1-4h5kzyle\lib\site-packages\c7n\filters\core.py", line 270, in process_set

resource_map = {r[rtype_id]: r for r in resources}


 "c:\users\username\.virtualenvs\c7n-0.9.1-4h5kzyle\lib\site-packages\c7n\filters\core.py", line 270, in <dictcomp>

resource_map = {r[rtype_id]: r for r in resources}
KeyError: 'CatalogId'
