newslynx / opportunities

A garden of NewsLynx futures
1 stars 0 forks source link

AttributeError: 'list' object has no attribute 'lower'\n\n on twitter-list-to-event #172

Closed mhkeller closed 8 years ago

mhkeller commented 8 years ago

This is coming up on some twitter list to event recipes. See issue for more detail https://github.com/newslynx/issue-tracker/issues/531

Traceback (most recent call last):
  File \"/usr/local/lib/python2.7/dist-packages/newslynx/merlynne.py\", line 123, in run
    data = sous_chef.cook()
  File \"/opt/newslynx/newslynx-core/newslynx/sc/__init__.py\", line 126, in cook
    raise SousChefExecError(format_exc())
    SousChefExecError: Traceback (most recent call last):
  File \"/opt/newslynx/newslynx-core/newslynx/sc/__init__.py\", line 122, in cook
    data = self.load(data)  # load the data.
  File \"/root/.newslynx/sous-chefs/newslynx-sc-twitter/newslynx_sc_twitter/events.py\", line 136, in load
    for d in data:
  File \"/opt/newslynx/newslynx-core/newslynx/sc/__init__.py\", line 80, in serialize
    for item in data:
  File \"/root/.newslynx/sous-chefs/newslynx-sc-twitter/newslynx_sc_twitter/events.py\", line 126, in run
    tweet = self.filter(tweet)
  File \"/root/.newslynx/sous-chefs/newslynx-sc-twitter/newslynx_sc_twitter/events.py\", line 57, in filter
    m = self.options['search_query'].match(to_search)
  File \"/usr/local/lib/python2.7/dist-packages/newslynx/lib/search.py\", line 174, in match
    t = self._process_text(t, **kw)
  File \"/usr/local/lib/python2.7/dist-packages/newslynx/lib/search.py\", line 232, in _process_text
    unidecode(text.lower().decode('utf-8')), errors='ignore')
    AttributeError: 'list' object has no attribute 'lower'