Use "isinstance" instead of "except" to determine
commit44e155e6e2466b5a6ebf6bedfdfec5d8514c0ae4
authorWesley Tanaka <wtanaka@yahoo.com>
Thu, 9 Jul 2009 09:36:14 +0000 (9 17:36 +0800)
committerWesley Tanaka <wtanaka@yahoo.com>
Thu, 9 Jul 2009 09:36:14 +0000 (9 17:36 +0800)
treea398efe088371ab6bcd693ee4ea0f2961cb0f5a4
parentbade9ef6bb4e595817aabc9a50562053eeec5b3c
Use "isinstance" instead of "except" to determine
exception type.  Also loop through the list of
handled exceptions instead of using a long elif
tree.
src/errors/middleware.py