summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-25 15:12:23 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-25 15:12:23 +0200
commit96ab1a8f44caf4f90148842fd826a8698ce144c5 (patch)
treeaad6a82d5f1828ba43b15720d4e883bbf395d263
parentccdf1206ee664a15cf9f4082ebc8835deafdffba (diff)
fix
-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")