don't need to logout if the browser hasn't been used
This commit is contained in:
parent
b0498473fb
commit
cf71465100
1 changed files with 4 additions and 0 deletions
|
|
@ -59,6 +59,10 @@ class LCLBackend(BaseBackend, ICapBank):
|
|||
self.config['password'].get())
|
||||
|
||||
def deinit(self):
|
||||
# don't need to logout if the browser hasn't been used.
|
||||
if not self._browser:
|
||||
return
|
||||
|
||||
try:
|
||||
deinit = self.browser.deinit
|
||||
except AttributeError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue