Skip to content

AttributeError: 'NoneType' object has no attribute 'text' #2

@timsk-ru

Description

@timsk-ru

Receiving the above error on running from Stackstorm 2.3.1 via any method. Full error text:

result :
--------
result : None
stderr :
  Traceback (most recent call last):
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 259, in <module>
    obj.run()
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 155, in run
    output = action.run(**self._parameters)
  File "/opt/stackstorm/packs/google/actions/get_search_results.py", line 18, in run
    results = google.search(query, num_page)[:count]
  File "/opt/stackstorm/virtualenvs/google/src/google-search-api/google/modules/standard_search.py", line 69, in search
    res.name = _get_name(li)
  File "/opt/stackstorm/virtualenvs/google/src/google-search-api/google/modules/standard_search.py", line 86, in _get_name
    return a.text.strip()
AttributeError: 'NoneType' object has no attribute 'text'
exit_code : 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions