From 914df18bf93369d279fff85f87c4ac8524f32540 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 19 Dec 2017 10:56:23 +0100 Subject: Main, ...: catch any exception, not just std::runtime_error --- src/sticker/SongSticker.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/sticker') diff --git a/src/sticker/SongSticker.cxx b/src/sticker/SongSticker.cxx index 45115251d..0101a1820 100644 --- a/src/sticker/SongSticker.cxx +++ b/src/sticker/SongSticker.cxx @@ -25,8 +25,6 @@ #include "util/Alloc.hxx" #include "util/ScopeExit.hxx" -#include - #include #include @@ -96,7 +94,7 @@ sticker_song_find_cb(const char *uri, const char *value, void *user_data) const LightSong *song = db->GetSong(uri); data->func(*song, value, data->user_data); db->ReturnSong(song); - } catch (const std::runtime_error &e) { + } catch (...) { } } -- cgit v1.2.3