Skip to content

Commit

Permalink
use more general exception (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Hughes <[email protected]>
  • Loading branch information
nathanhhughes and nathanhhughes committed Dec 12, 2023
1 parent 05c7f87 commit cda469e
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 cda469e

Please sign in to comment.