summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py9
1 files 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")