From 4a5c0d41c92e0812aa6b0c609e2bd5324cd9f44c Mon Sep 17 00:00:00 2001 From: Nekojimi Date: Sun, 21 Apr 2024 16:52:31 +0100 Subject: [PATCH] Playlist: fix bad try statement. --- src/main/java/moe/nekojimi/chords/Playlist.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/moe/nekojimi/chords/Playlist.java b/src/main/java/moe/nekojimi/chords/Playlist.java index 3f622fa..b587bdf 100644 --- a/src/main/java/moe/nekojimi/chords/Playlist.java +++ b/src/main/java/moe/nekojimi/chords/Playlist.java @@ -62,13 +62,7 @@ public class Playlist implements Consumer YamlSequence trackList = yaml.value("tracks").asSequence(); for (int i = 0; i < trackList.size(); i++) { - try - { - ret.addTrack(Track.fromYaml(trackList.yamlMapping(i))); - } catch (MalformedURLException ex) - { - Logger.getLogger(Playlist.class.getName()).log(Level.SEVERE, null, ex); - } + ret.addTrack(Track.fromYaml(trackList.yamlMapping(i))); } return ret; }