Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81738 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2014-12-01 07:11 +1100 |
| Last post | 2014-12-01 07:11 +1100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Getting errors from Imaplib Chris Angelico <rosuav@gmail.com> - 2014-12-01 07:11 +1100
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-12-01 07:11 +1100 |
| Subject | Re: Getting errors from Imaplib |
| Message-ID | <mailman.16441.1417378322.18130.python-list@python.org> |
On Mon, Dec 1, 2014 at 1:42 AM, Beatrix Willius from Moth Software <mail@beatrixwillius.de> wrote: > no, pinging Yahoo doesn't work. But this is an additional problem - perhaps I tested too often. This is one of my accounts for Imap testing and I only copied the value from Mail. > > For getting the error back this doesn't really matter. I'm not sure what you mean here. There are two ways I could see this being handled: 1) A network connection failure is fundamentally different from an auth problem. That's what you're currently seeing; only auth problems are caught. 2) Network failures and auth problems should be dealt with the same way. Change one line of code: except (imaplib.IMAP4.error, OSError): Now it'll cope with OSError the same way it copes with IMAP errors. Does that answer your question? ChrisA
Back to top | Article view | comp.lang.python
csiph-web