summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-08-23 17:49:42 +0200
committerTim Graham <timograham@gmail.com>2013-08-28 07:51:45 -0400
commitb89c2a5d9eb70ca36629ef657c98e3371e9a5c4f (patch)
tree3fc16e81d98696e058cfba1a5d3790863604bc7f /docs/ref/forms
parent5b889b2408eeaf72f45d8f97c114d8ba9f540726 (diff)
Fixed #18171 -- Checked signature of authenticate() to avoid supressing TypeErrors.
The current auth backend code catches TypeError to detect backends that do not support specified argumetnts. As a result, any TypeErrors raised within the actual backend code are silenced. In Python 2.7+ and 3.2+ this can be avoided by using inspect.getcallargs(). With this method, we can test whether arguments match the signature without actually calling the function. Thanks David Eyk for the report.
Diffstat (limited to 'docs/ref/forms')
0 files changed, 0 insertions, 0 deletions