This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new a3f0912 fix: calendar heatmap examples (#7375)
a3f0912 is described below
commit a3f091263a4cbb32d1607fcc7718986a357954b4
Author: Maxime Beauchemin <[email protected]>
AuthorDate: Wed May 8 00:35:14 2019 -0500
fix: calendar heatmap examples (#7375)
Fixing a set of examples that trip on ValueError vs TypeError
---
superset/viz.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/viz.py b/superset/viz.py
index 123c361..9661e23 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -213,7 +213,7 @@ class BaseViz(object):
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'