Merge pull request #6196 from vitor-k/stoll-exception

Resolve C4101 warning
This commit is contained in:
Vitor K 2022-11-21 19:50:15 -03:00 committed by GitHub
commit d09f6d97f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ void Config::ReadValues() {
try {
days = std::stoll(day_string);
} catch (std::exception& e) {
} catch (std::logic_error&) {
LOG_ERROR(Config, "Failed to parse days in init_time_offset. Using 0");
days = 0;
}