Better error checking on bad params (#1626)

This commit is contained in:
bmccandless
2020-07-16 11:08:27 -07:00
committed by GitHub
parent c592ff35f6
commit 3c6d90a4db
2 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ def test_server(command_line_args=[], app_config=None):
yaml config file, which this server will read and parse.
"""
port = DEFAULT_SERVER_PORT
port = int(os.environ.get("CXG_SERVER_PORT", DEFAULT_SERVER_PORT))
port = find_available_port("localhost", port)
command = ["cellxgene", "--no-upgrade-check", "launch", "--verbose", "--port=%d" % port] + command_line_args