diff --git a/superset/viz.py b/superset/viz.py index 24a773c6b260..06c35ec5c11f 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -213,7 +213,7 @@ def get_df(self, query_obj=None): try: int(one_ts_val) is_integral = True - except ValueError: + except (ValueError, TypeError): is_integral = False if is_integral: unit = 's' if timestamp_format == 'epoch_s' else 'ms'