Skip to content

fix(#1937): use dot notation for ActionSearch to fix TypeError #1979

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aajinn
Copy link

@aajinn aajinn commented Aug 1, 2025

This fix addresses a TypeError: 'ActionSearch' object is not subscriptable caused by treating an ActionSearch object like a dictionary. The code now correctly uses dot notation (search.action.query instead of search.action["query"]).

Summary

Replaced subscript notation with dot notation for accessing properties of the ActionSearch object. This resolves the following error:

TypeError: 'ActionSearch' object is not subscriptable

Changes

  • Replaced search.action["query"] with search.action.query

Motivation

Ensure compatibility with the ActionSearch class interface and prevent runtime errors when processing search steps.

Testing

  • Ran local tests to confirm error no longer appears
  • Verified query and status values are printed correctly

aajinn added 2 commits August 1, 2025 07:37
This fix addresses a TypeError: 'ActionSearch' object is not subscriptable caused by treating an ActionSearch object like a dictionary. The code now correctly uses dot notation (search.action.query instead of search.action["query"]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant