Only logoff if auth method and logout defined

Change-Id: I785ecde64302067aafbd44bcd3cc069b60146973
This commit is contained in:
Vitaliy Kharechko 2016-06-23 11:21:30 +03:00
parent 7f65ee1b3a
commit 5f5f99ef19
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class AgentConnection():
self._auth = None
def close(self):
if self._auth.logout:
if self._auth and self._auth.logout:
self._auth.logout()
self._auth = None