From 6df5f5c5d7b115496ef74d67c6be5955500e805b Mon Sep 17 00:00:00 2001 From: kylestratis Date: Fri, 30 Oct 2020 16:31:04 -0400 Subject: [PATCH] Make _single_get more flexible for missing column data --- flask_table/columns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_table/columns.py b/flask_table/columns.py index fc74d24..2d8e4fe 100644 --- a/flask_table/columns.py +++ b/flask_table/columns.py @@ -13,7 +13,7 @@ def _single_get(item, key): try: val = item[key] except (KeyError, TypeError): - val = getattr(item, key) + val = getattr(item, key, None) # once we have the value, try calling it as a function. If # that fails, the just return it.