Fix filenames, play error sound on unactionable.

This commit is contained in:
Bill Dengler 2015-05-14 10:09:31 -04:00
parent d02bd91f41
commit 7fb71e2ec5
2 changed files with 3 additions and 2 deletions

View File

@ -458,6 +458,7 @@ class baseBufferController(bufferController):
return output.speak("Not implemented",True) return output.speak("Not implemented",True)
else: else:
output.speak("Not actionable.",True) output.speak("Not actionable.",True)
self.session.sound.play("error.ogg")
def url(self,url='',announce=True): def url(self,url='',announce=True):
if url == '': if url == '':
@ -497,7 +498,7 @@ class baseBufferController(bufferController):
self.buffer.list.remove_item(index) self.buffer.list.remove_item(index)
# if index > 0: # if index > 0:
except TwythonError: except TwythonError:
self.session.sound.play("error.ogg") self.session.sound.play("error")
@_tweets_exist @_tweets_exist
def user_details(self): def user_details(self):

View File

@ -120,7 +120,7 @@ def api_call(parent=None, call_name=None, preexec_message="", success="", succes
parent.parent.sound.play(success_snd) parent.parent.sound.play(success_snd)
except TwythonError as e: except TwythonError as e:
output.speak("Error %s: %s" % (e.error_code, e.msg), True) output.speak("Error %s: %s" % (e.error_code, e.msg), True)
parent.parent.sound.play("error") parent.parent.sound.play("error.ogg")
return val return val
def is_allowed(tweet, clients): def is_allowed(tweet, clients):