plumdog / flask_table

Because writing HTML is fiddly and all of your tables are basically the same
http://flask-table.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
210 stars 45 forks source link

Make _single_get more flexible for missing column data #130

Open kylestratis opened 4 years ago

kylestratis commented 4 years ago

If one is using a NoSQL store like DynamoDB to populate tables, it's possible that an expected field doesn't exist on a query result. Adding the default value parameter to getattr() prevents this from throwing an error.