tarbell icon indicating copy to clipboard operation
tarbell copied to clipboard

AttributeError hides an easy way to break "values" sheet

Open eyeseast opened this issue 7 years ago • 0 comments

Here: https://github.com/tarbell-project/tarbell/blob/master/tarbell/app.py#L526

To reproduce, start a project with a values sheet, but delete the key column header. The project will suddenly have no data, just a sad {}. This is because copy_global_values (https://github.com/tarbell-project/tarbell/blob/master/tarbell/app.py#L537) looks for a key column, can't find it and throws an attribute error. So _get_context_from_gdoc returns an empty dictionary.

eyeseast avatar Dec 13 '17 00:12 eyeseast