pulb/mailnag — pull request #36 by Dutchy- (2012-01-20 14:32:41+00:00)
Title: Make sure creating the connection succeeded

I use mailnag on my laptop and I frequently suspend it. Somehow mailnag crashes after a resume because self._conn in idler.py is None. I think this patch fixes it because account._get_connection can return None in certain conditions.