diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-25 15:12:23 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-25 15:12:23 +0200 |
commit | 96ab1a8f44caf4f90148842fd826a8698ce144c5 (patch) | |
tree | aad6a82d5f1828ba43b15720d4e883bbf395d263 /main.py | |
parent | ccdf1206ee664a15cf9f4082ebc8835deafdffba (diff) |
fix
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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") |