shizmob / pydle

An IRCv3-compliant Python 3 IRC library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

on_raw_004 "not enough values to unpack"

bukowa opened this issue · comments

ERROR:MyOwnBot:chat.example:Failed to execute on_raw_004 handler.
Traceback (most recent call last):
  File "...pydle\client.py", line 422, in on_raw
    await handler(message)
  File "...\pydle\features\rfc1459\client.py", line 762, in on_raw_004
    target, hostname, ircd, user_modes, channel_modes = message.params[:5]
ValueError: not enough values to unpack (expected 5, got 2)

@bukowa Can you give me some context on how you reached this state?

@theunkn0wn1 its just because

len(message.params) < 5

in my case this happens in welcome message, just before on_connect

insufficient information to reproduce, closing as stale.