mirror of
https://git.clerie.de/clerie/mitel_ommclient2.git
synced 2026-01-03 04:38:12 +00:00
Stop on failed login
This commit is contained in:
parent
9f9df79ab8
commit
496b915c9d
1 changed files with 3 additions and 0 deletions
|
|
@ -57,10 +57,13 @@ class Session:
|
|||
|
||||
self._connection.connect()
|
||||
|
||||
# Login
|
||||
self._connection.send(messages.Open(self.username, self.password))
|
||||
|
||||
res = self._wait_for_respose()
|
||||
|
||||
res.raise_on_error()
|
||||
|
||||
def request(self, request):
|
||||
"""
|
||||
Sends a request and waits for response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue