Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81744

Re: Getting errors from Imaplib

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <mail@beatrixwillius.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.100
X-Spam-Level *
X-Spam-Evidence '*H*': 0.81; '*S*': 0.01; 'subject:Getting': 0.07; 'archiving': 0.09; 'question?': 0.09; 'oserror': 0.16; 'wrote:': 0.18; 'errors.': 0.24; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'skip:( 20': 0.30; 'thanks!': 0.32; 'subject:from': 0.34; 'except': 0.35; 'problem.': 0.35; 'received:84': 0.35; 'should': 0.36; 'problems': 0.38; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'failures': 0.60; 'header:Message-Id:1': 0.63; 'from:addr:mail': 0.83; 'received:212.162': 0.84; 'dealt': 0.91
Content-Type text/plain; charset=utf-8
Mime-Version 1.0 (Mac OS X Mail 8.0 \(1990.1\))
Subject Re: Getting errors from Imaplib
From Beatrix Willius from Moth Software <mail@beatrixwillius.de>
In-Reply-To <CAPTjJmpW=4B8EfsrsgtBK5CJHRRcR03sg9WdKUt3kGXxUU=2Og@mail.gmail.com>
Date Mon, 1 Dec 2014 08:11:30 +0100
Content-Transfer-Encoding quoted-printable
References <4B0DF114-E705-47B3-9815-003899F174CE@beatrixwillius.de> <CAPTjJmo_eZ=Ga=J6vqasD0EG8ZiVP9OLJE7CGxHa1ba8Jkv9WA@mail.gmail.com> <B32A0BD4-1298-4F20-A864-B20C6ACF86D9@beatrixwillius.de> <CAPTjJmpW=4B8EfsrsgtBK5CJHRRcR03sg9WdKUt3kGXxUU=2Og@mail.gmail.com>
To python-list@python.org
X-Mailer Apple Mail (2.1990.1)
X-Info valid message
X-Info original Date
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16447.1417417900.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1417417900 news.xs4all.nl 2914 [2001:888:2000:d::a6]:40872
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:81744

Show key headers only | View raw


On 30.11.2014, at 21:11, Chris Angelico <rosuav@gmail.com> wrote:
> 
> 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?

Thanks! That solves my problem.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Getting errors from Imaplib Beatrix Willius from Moth Software <mail@beatrixwillius.de> - 2014-12-01 08:11 +0100

csiph-web