diff --git a/src/mbgl/style/expression/coercion.cpp b/src/mbgl/style/expression/coercion.cpp index e0c29be1a..284d6f2e3 100644 --- a/src/mbgl/style/expression/coercion.cpp +++ b/src/mbgl/style/expression/coercion.cpp @@ -25,7 +25,7 @@ EvaluationResult toNumber(const Value& v) { [](const std::string& s) -> optional { try { return util::stof(s); - } catch (const std::exception&) { + } catch (...) { return optional(); } },