Commit a5519153 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Romain Bignon

[lcl] don't crash in deinit if page isn't handled

Closes: 546577@redmine
parent c2ff2e6b
......@@ -39,7 +39,7 @@ class LCLEnterpriseBrowser(LoginBrowser):
self.accounts = None
def deinit(self):
if self.page.logged:
if self.page and self.page.logged:
self.login.go(page="logout")
self.login.go(page="logoutOk")
assert self.login.is_here(page="logoutOk") or self.login.is_here(page="sessionExpiree")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment