-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relax attribute lookup in warning about old-styled middleware #2340
Comments
do you want me to do this? |
Could you do it asap? Otherwise I'll make a fix myself.
|
Sounds like you know what it needs to do and need the fix. Maybe best if you fix it. |
Deal |
* Fix #2340: Relax attribute lookup in warning about old-styled middleware * Add missing changelog * Fix tests on Windows
Fixed by #2341 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
For class-based middleware like
there is no
__name__
attr.Moreover I could imaging other situations where
__name__
doesn't exists.It breaks web server starting.
Let's change
middleware.__name__
torepr(middleware)
.Bugfix should be done in
2.3
branch.The text was updated successfully, but these errors were encountered: