From 432c645759361d30c5ad448d5003881a1a114307 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Wed, 22 Sep 2021 23:53:30 +0100 Subject: [PATCH] Fix returning OKAY to play when unloaded. Closes #16 --- player.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/player.py b/player.py index 2f70f31..da5477d 100644 --- a/player.py +++ b/player.py @@ -199,9 +199,7 @@ class Player: if not self.isPlaying: state = self.state.get() position: float = state["pos_true"] - try: - self.play(position) - except Exception: + if not self.play(position): self.logger.log.exception( "Failed to unpause from pos: " + str(position) )