From 96ab1a8f44caf4f90148842fd826a8698ce144c5 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 25 Aug 2015 15:12:23 +0200 Subject: fix --- main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 146087a..69a9499 100644 --- a/main.py +++ b/main.py @@ -18,6 +18,11 @@ sub = EnhancingSubscriber() c = client.Client(sub) sub.set_client(c) stats = stats.Stats() + +try: + nick = sys.argv[2] +except: + nick = "test cell pls ignore" for i in range(1,10): # 10 connection attempts print("trying to connect, attempt "+str(i)) @@ -28,10 +33,6 @@ for i in range(1,10): # 10 connection attempts addr, *_ = utils.get_party_address(token) print("using party token") - try: - nick = sys.argv[2] - except: - nick = "test cell pls ignore" except: addr, token, *_ = utils.find_server() print("joining random game") -- cgit v1.2.3