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: Show the error
Date Wed, 28 Feb 2018 18:22:29 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 69154f4  Show the error
69154f4 is described below

commit 69154f4f9fcffa960f4b0c5031958af7df3e0d35
Author: Sebb <sebb@apache.org>
AuthorDate: Wed Feb 28 18:22:22 2018 +0000

    Show the error
---
 tools/import-mbox.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 7cbbbf5..b3afa0e 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -42,8 +42,8 @@ from mboxo_patch import MboxoFactory, MboxoReader
 try:
     from elasticsearch import Elasticsearch, helpers
     from formatflowed import convertToWrapped # only needed by archiver
-except:
-    print("Sorry, you need to install the elasticsearch and formatflowed modules from pip
first.")
+except Exception as err:
+    print("Sorry, you need to install the elasticsearch and formatflowed modules from pip
first.",err)
     sys.exit(-1)
 
 # must be done after import check above

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

Mime
View raw message