From f7992b180e82293acb7d6df77e32d255f5168dbd Mon Sep 17 00:00:00 2001 From: yakamok <38737288+yakamok@users.noreply.github.com> Date: Tue, 3 Jul 2018 01:58:48 +0200 Subject: [PATCH] turn sys.argv[2] into int had to change the accepted len of sys.argv to 3 instead of 4 as this was too much --- send-view.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/send-view.py b/send-view.py index af95e1b..c0338ff 100644 --- a/send-view.py +++ b/send-view.py @@ -8,10 +8,10 @@ SERVER = "y.yakamo.org" #gives the option to get data from an external server instead and send that #if no options given it will default to localhost instead -#if len(sys.argv) == 3: -# host_port = (sys.argv[1], sys.argv[2]) -#else: -# host_port = ('localhost', 9001) +if len(sys.argv) == 3: + host_port = (sys.argv[1], int(sys.argv[2])) +else: + host_port = ('localhost', 9001) host_port = ('localhost', 9001) def send_view_to_server(tosend):