Skip to content

Commit

Permalink
use more general exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhhughes committed Dec 11, 2023
1 parent 05c7f87 commit a7aa524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config_utilities/src/string_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ std::string scalarToString(const YAML::Node& data, bool reformat_float) {
double value;
try {
value = data.as<double>();
} catch (const YAML::InvalidNode&) {
} catch (const std::exception&) {
return orig.str(); // value is some sort of string that can't be parsed as a float
}

Expand Down

0 comments on commit a7aa524

Please sign in to comment.