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: pylint: unused
Date Sun, 20 May 2018 14:06:11 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 7d69fce  pylint: unused
7d69fce is described below

commit 7d69fce3dd87bb7b2c8a7068bf4c16388048a341
Author: Sebb <sebb@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.

Mime
View raw message