TagArchive, db/update/Service: catch all exceptions
This commit is contained in:
parent
71ef0faa2c
commit
d3cc54d4eb
@ -33,7 +33,7 @@ try {
|
||||
return false;
|
||||
|
||||
return tag_stream_scan(*is, handler);
|
||||
} catch (const std::exception &e) {
|
||||
} catch (...) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -45,6 +45,6 @@ try {
|
||||
|
||||
auto is = archive.OpenStream(path_utf8, mutex);
|
||||
return is && tag_stream_scan(*is, builder);
|
||||
} catch (const std::exception &e) {
|
||||
} catch (...) {
|
||||
return false;
|
||||
}
|
||||
|
@ -126,8 +126,9 @@ UpdateService::Task() noexcept
|
||||
if (modified || !next.db->FileExists()) {
|
||||
try {
|
||||
next.db->Save();
|
||||
} catch (const std::exception &e) {
|
||||
LogError(e, "Failed to save database");
|
||||
} catch (...) {
|
||||
LogError(std::current_exception(),
|
||||
"Failed to save database");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user