From pylucene-dev-return-2966-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Sun Jan 27 23:07:01 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BC4FB180600 for ; Sun, 27 Jan 2019 23:07:00 +0100 (CET) Received: (qmail 22077 invoked by uid 500); 27 Jan 2019 22:06:59 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 22066 invoked by uid 99); 27 Jan 2019 22:06:59 -0000 Received: from mail-relay.apache.org (HELO mailrelay1-lw-us.apache.org) (207.244.88.152) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jan 2019 22:06:59 +0000 Received: from [192.168.0.4] (104.193.169-14.PUBLIC.monkeybrains.net [104.193.169.14]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id C71C210E2 for ; Sun, 27 Jan 2019 22:06:58 +0000 (UTC) Date: Sun, 27 Jan 2019 14:06:56 -0800 (PST) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: pylucene-dev@lucene.apache.org Subject: Re: Errors when running "make test" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (OSX 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Sun, 27 Jan 2019, marco turchi wrote: > Dear Andi, > thanks a lot! I will have a look at the configuration of the drivers. > > >> This code needs to be fixed for Python 3. >> How is the name of an exception class extracted in Python 3 ? >> The exception class cannot be used directly since WindowsError exists only >> on Windows, making the code using the exception class unportable. >> >> Oh, it looks like this code is just missing 'type()', it should say: if type(e).__name__ == 'WindowsError' Andi.. > According to your question, I guess the generic exception class that > includes all the built-in exceptions is BaseException. See here for > more details: > https://docs.python.org/3/library/exceptions.html#bltin-exceptions > > Thanks a lot! > Marco >