Skip to content
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

TypeError: can only concatenate list #674

Closed
slamanna212 opened this issue Dec 2, 2014 · 4 comments
Closed

TypeError: can only concatenate list #674

slamanna212 opened this issue Dec 2, 2014 · 4 comments
Labels
Bug Things to squish; generally used for issues

Comments

@slamanna212
Copy link

I get this error when i try to use most of the modules, so far it affects weather and the web page modules.

Full Error:

TypeError: can only concatenate list (not "unicode") to list (file "/home/TrollOP/willie/willie/db.py", line 582, in _get_one)

Traceback:


Traceback (most recent call last):
  File "/home/TrollOP/willie/willie/bot.py", line 741, in call
    exit_code = func(willie, trigger)
  File "/home/TrollOP/willie/willie/modules/weather.py", line 135, in weather
    woeid = bot.db.get_channel_value(location, 'woeid')
  File "/home/TrollOP/willie/willie/db.py", line 424, in get_channel_value
    return self.preferences.get(nick, key)
  File "/home/TrollOP/willie/willie/tools.py", line 289, in new
    return old(*args, **kwargs)
  File "/home/TrollOP/willie/willie/db.py", line 639, in get
    return self._get_one(row, columns, key)
  File "/home/TrollOP/willie/willie/db.py", line 582, in _get_one
    raise KeyError(row + ' not in database')
TypeError: can only concatenate list (not "unicode") to list

Running ubuntu server 14.04, python 2.7, code pulled from git 12 hours ago

@embolalia
Copy link
Contributor

Yeah, that's the old database for you. We're dropping the whole thing "soon"™ with #194, but this might be fixable for 4.6 depending on what the problem is. What is the command that caused this error to come up (it looks like something was done that asked for a channel or nick that wasn't in the database)?

@embolalia embolalia added the Bug Things to squish; generally used for issues label Dec 3, 2014
@slamanna212
Copy link
Author

I redid the server it was on, downloaded the latest git, then added in the
database from last weeks backup. The error happened anytime someone used
the .weather command add gave it a zip code or city state, it also showed
up any time a web link was posted in chat.

On Wed, Dec 3, 2014 at 7:58 AM, Edward Powell [email protected]
wrote:

Yeah, that's the old database for you. We're dropping the whole thing
"soon"™ with #194 #194, but
this might be fixable for 4.6 depending on what the problem is. What is the
command that caused this error to come up (it looks like something was done
that asked for a channel or nick that wasn't in the database)?


Reply to this email directly or view it on GitHub
#674 (comment).

@PeterDaveHello
Copy link
Contributor

+1

@embolalia
Copy link
Contributor

This was obviated by the release of 5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Things to squish; generally used for issues
Projects
None yet
Development

No branches or pull requests

3 participants