Open sebhaase opened 2 years ago
2nd line self.get_response = get_response
should be removed then...
I patched it with
from django_pdb.middleware import PdbMiddleware
if not hasattr(PdbMiddleware, '_is_coroutine'):
setattr(PdbMiddleware, '_is_coroutine', False)
But it’s better in the super
is called correctly
why did you not want to call super().init?
@sebhaase I’m not a django-pdb
developper. I just answer how I patched in on my project waiting for this issue to be resolved (using a call to super().__init__
)
@sebhaase Can you propose a merge request?
I suppose we should wait until "a maintainer/author" of this project shows up...
One year later… Is this project still maintained?
AttributeError: 'PdbMiddleware' object has no attribute '_is_coroutine'
seems to be coming from not callingsuper().__init__()
in thePdbMiddleware
I added line 41 - first line in the initfuncton:that in turn calls
_async_check()
correctly from classdeprecation.MiddlewareMixin