diff options
m--------- | agarnet | 0 | ||||
-rw-r--r-- | main.py | 2 | ||||
-rw-r--r-- | subscriber.py | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/agarnet b/agarnet -Subproject fcb201a3dc6bd867caacf94bb1e31a8c9f3b43f +Subproject 5eea6879d9c020237342c2f3e0361fc859c2bd1 @@ -87,7 +87,7 @@ for i in range(1,10): # 10 connection attempts # find out server and token to connect try: token = sys.argv[1] - addr, *_ = utils.get_party_address(token) + addr = utils.get_party_address(token) print("using party token") except: diff --git a/subscriber.py b/subscriber.py index 54c03cc..27cdfd3 100644 --- a/subscriber.py +++ b/subscriber.py @@ -13,6 +13,9 @@ class DummySubscriber: def on_sock_closed(self): log("on sock closed") + def on_server_version(self, number, text): + pass + def on_message_error(self,s): log("on msg err "+s) |