Improvements for twitter errors handling

This commit is contained in:
Manuel Cortez 2015-06-15 04:57:22 -05:00
parent 4896ebfffd
commit cbd9718e5f

View File

@ -124,4 +124,6 @@ def twitter_error(error):
msg = _(u"Sorry, you are not authorised to see this status.") msg = _(u"Sorry, you are not authorised to see this status.")
elif error.error_code == 404: elif error.error_code == 404:
msg = _(u"No status found with that ID") msg = _(u"No status found with that ID")
else:
msg = _(u"Error code {0}").format(error.error_code,)
output.speak(msg) output.speak(msg)