You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2018/05/20 14:06:11 UTC

[incubator-ponymail] branch master updated: pylint: unused

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 7d69fce  pylint: unused
7d69fce is described below

commit 7d69fce3dd87bb7b2c8a7068bf4c16388048a341
Author: Sebb <se...@apache.org>
AuthorDate: Sun May 20 15:06:10 2018 +0100

    pylint: unused
---
 tools/elastic.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/elastic.py b/tools/elastic.py
index 0bc5d4e..24940ad 100755
--- a/tools/elastic.py
+++ b/tools/elastic.py
@@ -28,11 +28,11 @@ import certifi
 try:
     from elasticsearch import Elasticsearch, helpers
     from elasticsearch import VERSION as ES_VERSION
-except Exception as e:
+except ImportError as e:
     sys.exit("Sorry, you need to install the elasticsearch module from pip first. (%s)" % str(e))
 
 class Elastic:
-    def __init__(self, dbname=None, **kwargs):
+    def __init__(self, dbname=None):
         # Fetch config
         config = PonymailConfig()
         self.dbname = dbname or config.get("elasticsearch", "dbname")

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