don't need to logout if the browser hasn't been used

This commit is contained in:
Romain Bignon 2013-07-28 17:37:23 +02:00
commit cf71465100

View file

@ -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: