Use request wrapper for session login
This commit is contained in:
parent
d14fb10ddb
commit
5c565bc62c
@ -58,11 +58,9 @@ class Session:
|
||||
self._connection.connect()
|
||||
|
||||
# Login
|
||||
self._connection.send(messages.Open(self.username, self.password))
|
||||
r = self.request(messages.Open(self.username, self.password))
|
||||
|
||||
res = self._wait_for_respose()
|
||||
|
||||
res.raise_on_error()
|
||||
r.raise_on_error()
|
||||
|
||||
def request(self, request):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user