You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the checked button parameters in this method is custom_id.
The problem is that there are buttons which do not have a custom_id because they're buttons pointing to a URL. So when the method is checking a message with such a button, the following happens:
Traceback (most recent call last):
File "/home/fwinn/.local/lib/python3.10/site-packages/discum/gateway/gateway.py", line 299, in _response_loop
func(resp)
File "/home/fwinn/xyz/discum_bot.py", line 47, in main
print(btns.findButton(label="U1"))
File "/home/fwinn/.local/lib/python3.10/site-packages/discum/utils/button.py", line 54, in findButton
c["custom_id"],
KeyError: 'custom_id'
The text was updated successfully, but these errors were encountered:
fwinn
changed the title
Bug in findButton() in Button class
KeyError in findButton(), Button class
Apr 18, 2023
One of the checked button parameters in this method is
custom_id
.The problem is that there are buttons which do not have a
custom_id
because they're buttons pointing to a URL. So when the method is checking a message with such a button, the following happens:The text was updated successfully, but these errors were encountered: