[Tutor] (no subject)

Selby Rowley-Cannon selbyrowleycannon at ymail.com
Tue Jun 19 21:35:33 CEST 2012


Mailing list;
        I have a small, [for the most part] functioning translation app for Rydish, a language created for the sole purpose of an RPG. The only problem is when I enter a word that has not yet been translated, I get this error:

Traceback (most recent call last):
  File "translator.py", line 25, in <module>
    Etranslate()
  File "translator.py", line 14, in Etranslate
    print(Edictionary[Eword])
KeyError: 'world'

Is there a way to print a user-freindly message instead of displaying a traceback?
Thanks,
        -Selby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120619/1e785c50/attachment.html>


More information about the Tutor mailing list