summaryrefslogtreecommitdiff
path: root/src/sticker
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-03-19 00:13:57 +0100
committerMax Kellermann <max@duempel.org>2016-03-19 00:19:50 +0100
commit2fd51826087897f2ce5bfd9ca27c1e167a3e4284 (patch)
tree2be6bbe1e4978ce4b8e9c7328e197477f1215575 /src/sticker
parent7ad7caa2ae6164615ddf28846b7e9e2cdc6e844f (diff)
db/Interface: GetSong() throws exception on error
Diffstat (limited to 'src/sticker')
-rw-r--r--src/sticker/SongSticker.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sticker/SongSticker.cxx b/src/sticker/SongSticker.cxx
index 121494af9..f144327cf 100644
--- a/src/sticker/SongSticker.cxx
+++ b/src/sticker/SongSticker.cxx
@@ -93,11 +93,9 @@ sticker_song_find_cb(const char *uri, const char *value, void *user_data)
const Database *db = data->db;
try {
- const LightSong *song = db->GetSong(uri, IgnoreError());
- if (song != nullptr) {
- data->func(*song, value, data->user_data);
- db->ReturnSong(song);
- }
+ const LightSong *song = db->GetSong(uri);
+ data->func(*song, value, data->user_data);
+ db->ReturnSong(song);
} catch (const std::runtime_error &e) {
}
}