From df3d5728d3d86dcf72b5d8123c2c7d68de30f23a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 15 May 2019 18:13:34 +0200 Subject: [PATCH] Stop working on this branch --- royalnet/network/royalnetlink.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/royalnet/network/royalnetlink.py b/royalnet/network/royalnetlink.py index f7ec976b..e52fbc48 100644 --- a/royalnet/network/royalnetlink.py +++ b/royalnet/network/royalnetlink.py @@ -108,10 +108,7 @@ class RoyalnetLink: async def identify(self) -> None: log.info(f"Identifying to {self.master_uri}...") await self.websocket.send(f"Identify {self.nid}:{self.link_type}:{self.secret}") - response_package = await self.receive() - response = response_package.data - if isinstance(response, ServerErrorMessage): - raise NetworkError(response, "Server returned error while identifying self") + response_package: dict = await self.receive() self.identify_event.set() log.info(f"Identified successfully!")