ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [incubator-ponymail] branch master updated: Narrower Exception
Date Fri, 25 May 2018 17:47:17 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
     new 0401864  Narrower Exception
0401864 is described below

commit 0401864e723f8a48db421cd9d5e517bd5aa83605
Author: Sebb <sebb@apache.org>
AuthorDate: Fri May 25 18:47:16 2018 +0100

    Narrower Exception
---
 tools/import-mbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index df85c89..881515a 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -38,7 +38,7 @@ import gzip
 try:
     from elasticsearch import Elasticsearch, helpers
     from formatflowed import convertToWrapped # only needed by archiver
-except Exception as err:
+except ImportError as err:
     print("Sorry, you need to install the elasticsearch and formatflowed modules from pip
first.",err)
     sys.exit(-1)
 

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.

Mime
View raw message