Skip to content
Profile icon

I have an error but i dont know how to resolve this
If anyone can help me with this ?

Ignoring exception in on_message
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/", line 343, in _run_event
await coro(*args, **kwargs)
File "", line 64, in on_message
options = options + db["encouragements"]
TypeError: can only concatenate list (not "ObservedList") to list

You are viewing a single comment. View All
Profile icon

Python is saying that you can only add two objects of type 'list'. Try converting db["encouragements"] to a list:

if "encouragements" in db.keys(): options += list(db["encouragements"])
Profile icon

@Geocube101 Thx alot , im new =)