Skip to content
This repository was archived by the owner on Jun 15, 2018. It is now read-only.

Conversation

@Kogelvis
Copy link

Modified if statement to check if cookiejar is not None, because cookiejars support the iterator
protocol. If you create a cookiejar and supply it to the constructor it will have no cookies to
iterate and therefore cookiejar will be 0 and "if cookiejar:" will result in "False".
But you want to use the supplied cookiejar, this happens if you compare it to None.

…iejars support the iterator

protocol. If you create a cookiejar and supply it to the constructor it will have no cookies to
iterate and therefore cookiejar will be 0 and "if cookiejar:" will be False.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant