gdcvault: only log out when actually logged in
This commit is contained in:
parent
621b55bf0d
commit
69505f312a
1 changed files with 3 additions and 1 deletions
|
|
@ -81,7 +81,9 @@ class GDCVaultBrowser(BaseBrowser):
|
|||
raise BrowserIncorrectPassword()
|
||||
|
||||
def close_session(self):
|
||||
# XXX: only if is_logged? or was used?
|
||||
if self.password is None or not self.is_logged():
|
||||
return
|
||||
|
||||
self.openurl('/logout', '')
|
||||
|
||||
@id2url(GDCVaultVideo.id2url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue