From 8eb6d0c4cb3d6efac5d448d552cc78815e63a96f Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Tue, 12 May 2015 11:46:08 -0400 Subject: [PATCH] #33: Implemented exception on audio links that don't play. --- src/controller/buffersController.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index f6d89a14..bed191a5 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -426,7 +426,10 @@ class baseBufferController(bufferController): url=urls_list.get_string() if hasattr(urls_list, "destroy"): urls_list.destroy() if url != '': - sound.URLPlayer.play(url, self.session.settings["sound"]["volume"]) + try: + sound.URLPlayer.play(url, self.session.settings["sound"]["volume"]) + except: + self.url(url=url) @_tweets_exist def interact(self): "Select the best action for the currently focused tweet (audio, geocode, URL, etc)."