mirror of
https://github.com/apache/superset.git
synced 2026-06-02 22:29:26 +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.