ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: setup.py does not handle empty response to port number well
Date Sat, 29 Oct 2016 23:35:33 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 3a48b8bb0 -> 2fa94f4c3


setup.py does not handle empty response to port number well

This fixes #133

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/2fa94f4c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/2fa94f4c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/2fa94f4c

Branch: refs/heads/master
Commit: 2fa94f4c3e8068818482ec45d331fff1227bb979
Parents: 3a48b8b
Author: Sebb <sebb@apache.org>
Authored: Sun Oct 30 00:35:01 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Sun Oct 30 00:35:01 2016 +0100

----------------------------------------------------------------------
 tools/setup.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/2fa94f4c/tools/setup.py
----------------------------------------------------------------------
diff --git a/tools/setup.py b/tools/setup.py
index 431c284..db3a48e 100644
--- a/tools/setup.py
+++ b/tools/setup.py
@@ -125,7 +125,10 @@ while hostname == "":
     hostname = input("What is the hostname of the ElasticSearch server? (e.g. localhost):
")
     
 while port < 1:
-    port = int(input("What port is ElasticSearch listening on? (normally 9200): "))
+    try:
+        port = int(input("What port is ElasticSearch listening on? (normally 9200): "))
+    except ValueError:
+        pass
 
 while dbname == "":
     dbname = input("What would you like to call the mail index (e.g. ponymail): ")


Mime
View raw message