Please sign in to comment.
Fixed #18171 -- Checked signature of authenticate() to avoid supressi…
…ng 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.
- Loading branch information...
Showing with 34 additions and 1 deletion.