Main, ...: catch any exception, not just std::runtime_error
This commit is contained in:
@@ -194,7 +194,7 @@ ParseTimeStamp(const char *s)
|
||||
try {
|
||||
// TODO: make this more robust
|
||||
return ParseTimePoint(s, "%a, %d %b %Y %T %Z");
|
||||
} catch (const std::runtime_error &) {
|
||||
} catch (...) {
|
||||
return std::chrono::system_clock::time_point::min();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user