[Tutor] get key value from Redis instance

Danny Yoo dyoo at hashcollision.org
Sun May 27 18:22:44 EDT 2018


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!


More information about the Tutor mailing list