Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError for Irc::Bot::TimeoutError #91

Open
henk84 opened this issue Jun 10, 2024 · 0 comments
Open

NameError for Irc::Bot::TimeoutError #91

henk84 opened this issue Jun 10, 2024 · 0 comments

Comments

@henk84
Copy link

henk84 commented Jun 10, 2024

rescue Errno::ETIMEDOUT, Errno::ECONNABORTED, TimeoutError, SocketError => e

I’m getting an error in my logs mentioning this line:

/home/irc-bot-marvin/rundir/rbot/lib/rbot/ircbot.rb:963:in `rescue in mainloop': uninitialized constant Irc::Bot::TimeoutError (NameError)

      rescue Errno::ETIMEDOUT, Errno::ECONNABORTED, TimeoutError, SocketError => e
                                                    ^^^^^^^^^^^^
	from /home/irc-bot-marvin/rundir/rbot/lib/rbot/ircbot.rb:935:in `mainloop'
	from /home/irc-bot-marvin/rundir/rbot/bin/rbot:123:in `<top (required)>'
	from /home/irc-bot-marvin/rundir/rbot/launch_here.rb:68:in `load'
	from /home/irc-bot-marvin/rundir/rbot/launch_here.rb:68:in `<main>'
/home/irc-bot-marvin/rundir/rbot/lib/rbot/ircbot.rb:685:in `block in initialize': ServerError (ServerError)
	from /home/irc-bot-marvin/rundir/rbot/lib/rbot/rfc2812.rb:1527:in `handle'
	from /home/irc-bot-marvin/rundir/rbot/lib/rbot/rfc2812.rb:1513:in `process'
	from /home/irc-bot-marvin/rundir/rbot/lib/rbot/ircbot.rb:949:in `mainloop'
	from /home/irc-bot-marvin/rundir/rbot/bin/rbot:123:in `<top (required)>'
	from /home/irc-bot-marvin/rundir/rbot/launch_here.rb:68:in `load'
	from /home/irc-bot-marvin/rundir/rbot/launch_here.rb:68:in `<main>'

I think this might be trivial to fix for someone who knows the codebase or at least knows their way around ruby code but not for me. I have no idea where this constant might come from or what to use instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant