From f685a59e716eb6b888b418ad61c1df59af7b2e2c Mon Sep 17 00:00:00 2001 From: "nath@laptop" Date: Thu, 31 Dec 2015 13:40:48 +0100 Subject: [PATCH] play: remove dead code This piece of code won't ever execute because interactive open terminates python execution --- beetsplug/play.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/beetsplug/play.py b/beetsplug/play.py index 1d425e1c8..e366919fb 100644 --- a/beetsplug/play.py +++ b/beetsplug/play.py @@ -131,11 +131,6 @@ class PlayPlugin(BeetsPlugin): except OSError as exc: raise ui.UserError("Could not play the music playlist: " "{0}".format(exc)) - finally: - if not raw: - self._log.debug('Removing temporary playlist: {}', - open_args[0]) - util.remove(open_args[0]) def _create_tmp_playlist(self, paths_list): """Create a temporary .m3u file. Return the filename.