Skip to content

Commit dee2c11

Browse files
committed
Closes #194: default Port is a string and when provided, it prints as an int. found by austynh Closes #195.
1 parent bcf2df1 commit dee2c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tika/tika.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,10 +622,10 @@ def startServer(tikaServerJar, java_path = TikaJava, serverHost = ServerHost, po
622622
# setup command string
623623
cmd_string = ""
624624
if not config_path:
625-
cmd_string = '%s -cp %s org.apache.tika.server.TikaServerCli --port %i --host %s &' \
625+
cmd_string = '%s -cp %s org.apache.tika.server.TikaServerCli --port %s --host %s &' \
626626
% (java_path, classpath, port, host)
627627
else:
628-
cmd_string = '%s -cp %s org.apache.tika.server.TikaServerCli --port %i --host %s --config %s &' \
628+
cmd_string = '%s -cp %s org.apache.tika.server.TikaServerCli --port %s --host %s --config %s &' \
629629
% (java_path, classpath, port, host, config_path)
630630

631631
# Check that we can write to log path

0 commit comments

Comments
 (0)