Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2008-03-28 17:09:37 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2008-03-28 17:09:37 (GMT)
commit7cf7595d889dc264dbe529061bca0a3b2f3950c7 (patch)
tree699655bef529de519566424fdca2237b4ae41409 /src
parent500f75f6153f2a34724e90753932dd6f4d7187f1 (diff)
Return if there is no master, otherwise we traceback out.
Diffstat (limited to 'src')
-rw-r--r--src/hardware/hardwaremanager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hardware/hardwaremanager.py b/src/hardware/hardwaremanager.py
index 4eeac03..29be450 100644
--- a/src/hardware/hardwaremanager.py
+++ b/src/hardware/hardwaremanager.py
@@ -64,6 +64,7 @@ class HardwareManager(object):
def set_volume(self, volume):
if not self._mixer or not self._master:
logging.error('Cannot set the volume')
+ return
if volume < 0 or volume > 100:
logging.error('Trying to set an invalid volume value.')