Skip to content

AttributeError when send payload #7

Description

@BryanttV

When the “Send payload” button is pressed, an AttributeError is raised.

image

  File "/openedx/venv/lib/python3.11/site-packages/xblock/runtime.py", line 1057, in handle
    results = handler(request, suffix)
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/openedx/venv/lib/python3.11/site-packages/xblock/core.py", line 191, in wrapper
    response = func(self, request_json, suffix)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/openedx/extra-deps/webhook-xblock/webhook_xblock/webhook_xblock.py", line 237, in send_payload
    payload = flatten_dict(payload)
              ^^^^^^^^^^^^^^^^^^^^^
  File "/openedx/extra-deps/webhook-xblock/webhook_xblock/utils.py", line 14, in flatten_dict
    if isinstance(value, collections.MutableMapping):
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableMapping'

MutableMapping was deprecated since version 3.3, and was removed in version 3.10: Moved Collections Abstract Base Classes to the collections.abc module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions