Skip to content

Commit

Permalink
[translate] Make sure we output English even if the text is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Alfassa committed May 9, 2013
1 parent 4d17b92 commit 2e5c2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def mangle(willie, trigger):
try:
phrase = translate(phrase[0], 'en', lang)
except:
break
phrase = False
if not phrase:
phrase = backup
break
Expand Down

0 comments on commit 2e5c2ca

Please sign in to comment.