Skip to content

When is next release scheduled to fix the "AttributeError: 'function' object has no attribute '__func__'" error in cache.py? #1775

Closed
@vignirvignir

Description

@vignirvignir

TLDR; When is the next release scheduled?

This error is present in version 4.0.0 when making any request on an endpoint using django rest framework.
I see it has been probably fixed in the latest commit a6b65a7

            | Traceback (most recent call last):
            |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
            |     response = get_response(request)
            |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/sentry_sdk/integrations/django/middleware.py", line 176, in __call__
            |     return f(*args, **kwargs)
            |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/debug_toolbar/middleware.py", line 64, in __call__
            |     panel.disable_instrumentation()
         |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/debug_toolbar/panels/cache.py", line 217, in disable_instrumentation
         |     self._unmonkey_patch_cache(cache)
         |   File "/opt/pysetup/.venv/lib/python3.9/site-packages/debug_toolbar/panels/cache.py", line 171, in _unmonkey_patch_cache
         |     if original_method.__func__ == getattr(cache.__class__, name):
         | AttributeError: 'function' object has no attribute '__func__'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions