Closed GjjvdBurg closed 3 years ago
Update: I guess it is None when msg_id is not in thread.mentions. I don't know if that's expected or not here, but if it's not an issue then I think the fix is fine.
I think you're right. We could also modify the get call to thread.mentions.get(msg._id, {})
I think you're right. We could also modify the get call to
thread.mentions.get(msg._id, {})
That's true, although using mutable defaults for keyword arguments is a bit of a Python "gotcha", so using None is probably preferred.
Oh, that's right. Well, then :+1:
Not sure why this was None in the first place, which may be worth investigating still. Fixes #48.
Update: I guess it is None when
msg_id
is not inthread.mentions
. I don't know if that's expected or not here, but if it's not an issue then I think the fix is fine.