shizmob / pydle

An IRCv3-compliant Python 3 IRC library.
BSD 3-Clause "New" or "Revised" License
154 stars 47 forks source link

on_raw_004 "not enough values to unpack" #147

Closed bukowa closed 2 years ago

bukowa commented 4 years ago
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)
theunkn0wn1 commented 4 years ago

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

bukowa commented 4 years ago

@theunkn0wn1 its just because

len(message.params) < 5

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

theunkn0wn1 commented 2 years ago

insufficient information to reproduce, closing as stale.