]> git.0d.be Git - jack_mixer.git/commitdiff
don't fail if we can't get lash server name
authorFrédéric Péters <fpeters@0d.be>
Wed, 5 May 2010 09:14:46 +0000 (11:14 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 5 May 2010 09:14:46 +0000 (11:14 +0200)
jack_mixer.py

index bab082614d8369ed0d541af19296a0896e37a8c4..52b28b33ec0f96a310f6e43e60b4af3585ed2ae4 100755 (executable)
@@ -714,7 +714,13 @@ def main():
     # Yeah , this sounds stupid, we connected earlier, but we dont want to show this if we got --help option
     # This issue should be fixed in pylash, there is a reason for having two functions for initialization after all
     if lash_client:
-        print "Successfully connected to LASH server at " +  lash.lash_get_server_name(lash_client)
+        server_name = lash.lash_get_server_name(lash_client)
+        if server_name:
+            print "Successfully connected to LASH server at " + server_name
+        else:
+            # getting the server name failed, probably not worth trying to do
+            # further things with as a lash client.
+            lash_client = None
 
     if len(args) == 1:
         name = args[0]