One other recommendation: remove the try/except block for now.  Don't use
exception handling.

We want to use exception handling if we have any significant recovery
logic, or if it's important not to expose program errors to the end user.
But your situation doesn't match this.  In fact, you want to see errors as
they happen, and as close to their root cause as possible.  Exception
handling, in that case, is harmful: it allows the programmer to
accidentally make their debugging job *harder*.


Hope this helps!
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to