summaryrefslogtreecommitdiff
path: root/src/sticker
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-19 10:56:23 +0100
committerMax Kellermann <max@musicpd.org>2017-12-19 10:56:23 +0100
commit914df18bf93369d279fff85f87c4ac8524f32540 (patch)
treeb73edeeb37923be1c124e608423ad3b5da068958 /src/sticker
parenta539094c06114a6be862e219bfc03d6a3513d80b (diff)
Main, ...: catch any exception, not just std::runtime_error
Diffstat (limited to 'src/sticker')
-rw-r--r--src/sticker/SongSticker.cxx4
1 files changed, 1 insertions, 3 deletions
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 <stdexcept>
-
#include <string.h>
#include <stdlib.h>
@@ -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 (...) {
}
}