You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ponymail.apache.org by sebbASF <gi...@git.apache.org> on 2016/09/23 16:15:46 UTC

[GitHub] incubator-ponymail issue #133: Bug: setup.py does not handle empty response ...

GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/133

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

    setup.py prompts for various parameters if they have not been provided.
    In most cases it re-prompts if return is pressed, however an empty reply for port causes the script to fail:
    
    What port is ElasticSearch listening on? (normally 9200): 
    Traceback (most recent call last):
      File "setup.py", line 128, in <module>
        port = int(input("What port is ElasticSearch listening on? (normally 9200): "))
    ValueError: invalid literal for int() with base 10: ''
    
    The code should allow for this; e.g. as follows:
    
    while port < 1:
        try:
            port = int(input("What port is ElasticSearch listening on? (normally 9200): "))
        except ValueError:
            pass


----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ponymail issue #133: Bug: setup.py does not handle empty response ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the issue at:

    https://github.com/apache/incubator-ponymail/issues/133


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---