mirror of
https://github.com/apache/superset.git
synced 2026-04-09 11:25:23 +00:00
Since https://github.com/apache/incubator-superset/pull/6287 and effectively moving to a new version of d3, d3-format and d3-time-format raises when receiving invalid input strings. This code wraps the potential issues inside `try` blocks that will effectively return an `ERROR` string as output to the formatting function.