Skip to content

Commit

Permalink
Removed catching out_of_range. Can't be thrown anymore
Browse files Browse the repository at this point in the history
Signed-off-by: Piet Gömpel <pietgoempel@gmail.com>
  • Loading branch information
Pietfried committed Oct 15, 2024
1 parent 85c918b commit 1bd2764
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/API/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ void API::init() {
evse_energy_sink.call_set_external_limits(external_limits);
} catch (const std::invalid_argument& e) {
EVLOG_warning << "Invalid limit: No conversion of given input could be performed.";
} catch (const std::out_of_range& e) {
EVLOG_warning << "Invalid limit: Out of range.";
}
});

Expand All @@ -526,8 +524,6 @@ void API::init() {
evse_energy_sink.call_set_external_limits(external_limits);
} catch (const std::invalid_argument& e) {
EVLOG_warning << "Invalid limit: No conversion of given input could be performed.";
} catch (const std::out_of_range& e) {
EVLOG_warning << "Invalid limit: Out of range.";
}
});
} else {
Expand Down

0 comments on commit 1bd2764

Please sign in to comment.