Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Crash on connexion lost #4

Open
xrogaan opened this issue Mar 2, 2011 · 0 comments
Open

Crash on connexion lost #4

xrogaan opened this issue Mar 2, 2011 · 0 comments

Comments

@xrogaan
Copy link
Owner

xrogaan commented Mar 2, 2011

If the network fails, the bot crashes instead of trying to reconnect.

First thing to do is to correct the feedparser, which introduce the crash (the bozo error).

Here is a backtrace:

Warning: bozo error in effect!!!
>>> (110) Connection timed out
Traceback (most recent call last):
  File "main.py", line 339, in 
    bot.our_start()
  File "main.py", line 120, in our_start
    self.start()
  File "/home/swh/apib/irclib/ircbot.py", line 247, in start
    SimpleIRCClient.start(self)
  File "/home/swh/apib/irclib/irclib.py", line 1139, in start
    self.ircobj.process_forever()
  File "/home/swh/apib/irclib/irclib.py", line 234, in process_forever
    self.process_once(timeout)
  File "/home/swh/apib/irclib/irclib.py", line 222, in process_once
    self.process_timeout()
  File "/home/swh/apib/irclib/irclib.py", line 194, in process_timeout
    self.delayed_commands[0][1](*self.delayed_commands[0][2])
  File "main.py", line 234, in m_privmsg
    for msg in messages:
TypeError: 'NoneType' object is not iterable
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant