bzr-inotify crash

Bug #643775 reported by Marc Gariépy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-inotify
New
Undecided
Unassigned

Bug Description

Here is the python trace:

# bzr-inotify
Traceback (most recent call last):
  File "/usr/bin/bzr-inotify", line 297, in <module>
    notifier.process_events()
  File "/var/lib/python-support/python2.5/pyinotify/pyinotify.py", line 640, in process_events
    self._default_proc_fun(revent)
  File "/var/lib/python-support/python2.5/pyinotify/pyinotify.py", line 335, in __call__
    return meth(event)
  File "/usr/bin/bzr-inotify", line 121, in process_IN_DELETE
    im.sendmail("bzr whoami failed")
  File "/usr/lib/python2.5/site-packages/BzrInotify/BzrInotifyMail.py", line 72, in sendmail
    s.sendmail(self.msg['From'], self.to_emails, self.msg.as_string())
  File "/usr/lib/python2.5/smtplib.py", line 676, in sendmail
    if not (200 <= self.ehlo()[0] <= 299):
  File "/usr/lib/python2.5/smtplib.py", line 397, in ehlo
    self.putcmd("ehlo", name or self.local_hostname)
  File "/usr/lib/python2.5/smtplib.py", line 333, in putcmd
    self.send(str)
  File "/usr/lib/python2.5/smtplib.py", line 325, in send
    raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first

Revision history for this message
Marc Gariépy (mgariepy) wrote :

the problem is that if the smtp server is not existing, the service crash when it tries to send an email.

code to manage this error should be writen.

Changed in bzr-inotify:
status: New → Invalid
status: Invalid → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.