From cbcc6f812a58bc9b39409bdbf7ecfa8b612c4419 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 22 Jan 2019 16:40:00 -0600 Subject: [PATCH] Fixed an error raised when there were attempts to set volume before the URL Player has played something --- src/presenters/player.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/presenters/player.py b/src/presenters/player.py index a1bcf8e..2f13ab0 100644 --- a/src/presenters/player.py +++ b/src/presenters/player.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals import sys import random import output @@ -95,8 +94,7 @@ class audioPlayer(object): @property def volume(self): - if self.stream != None: - return self.vol + return self.vol @volume.setter def volume(self, vol):