Traceback (most recent call last):


 "/opt/custodian/lib64/python3.6/site-packages/c7n_org/cli.py", line 550, in run_account

resources = p.run()


 "/opt/custodian/lib64/python3.6/site-packages/c7n/policy.py", line 1175, in __call__

resources = mode.run()


 "/opt/custodian/lib64/python3.6/site-packages/c7n/policy.py", line 313, in run

results = a.process(resources)


 "/opt/custodian/lib64/python3.6/site-packages/c7n_gcp/actions/core.py", line 66, in process

self.process_resource_set(client, model, resource_set)


 "/opt/custodian/lib64/python3.6/site-packages/c7n_gcp/actions/core.py", line 73, in process_resource_set

params = self.get_resource_params(model, resource)


 "/opt/custodian/lib64/python3.6/site-packages/c7n_gcp/actions/labels.py", line 42, in get_resource_params

new_labels = self.get_labels_to_add(resource)


 "/opt/custodian/lib64/python3.6/site-packages/c7n_gcp/actions/labels.py", line 115, in get_labels_to_add

return {k: Lookup.extract(v, resource) for k, v in self.data.get('labels').items()}
AttributeError: 'NoneType' object has no attribute 'items'


Traceback (most recent call last):


 "/home/user/venv/local/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app

response = self.full_dispatch_request()


 "/home/user/venv/local/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/home/user/venv/local/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/home/user/venv/local/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request

rv = self.dispatch_request()


 "/home/user/venv/local/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/home/user/venv/local/lib/python2.7/site-packages/superset/models.py", line 2287, in wrapper

return f(*args, **kwargs)


 "/home/user/venv/local/lib/python2.7/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps

return f(self, *args, **kwargs)


 "/home/user/venv/local/lib/python2.7/site-packages/superset/views.py", line 1469, in explore

payload = viz_obj.get_csv()


 "/home/user/venv/local/lib/python2.7/site-packages/superset/viz.py", line 374, in get_csv

df = self.get_df()


 "/home/user/venv/local/lib/python2.7/site-packages/superset/viz.py", line 169, in get_df

self.results = self.datasource.query(**query_obj)


 "/home/user/venv/local/lib/python2.7/site-packages/superset/models.py", line 1023, in query

metrics_exprs = [metrics_dict.get(m).sqla_col for m in metrics]
AttributeError: 'NoneType' object has no attribute 'sqla_col'
