Skip to content
Snippets Groups Projects
Verified Commit 8d46eaec authored by Antonio Vivace's avatar Antonio Vivace
Browse files

init_session: do not use cookies if an empty object is passed

parent cf71ec91
Branches master
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ def _init_session(s, url, cookiejar, auth_url_fragment):
auth/integrated/ (kerberos) and auth/sslclient/ (SSL)
"""
if cookiejar is not None:
if cookiejar:
log.debug("Using provided cookiejar")
s.cookies = cookiejar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment