Skip to content

Commit

Permalink
Merge pull request #266 from TAAPArthur/share_attributes
Browse files Browse the repository at this point in the history
Always share attributes with underlying session instance
  • Loading branch information
VeNoMouS committed Nov 7, 2021
2 parents 09ed02e + e2d9db2 commit d53fd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudscraper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def create_scraper(cls, sess=None, **kwargs):
if sess:
for attr in ['auth', 'cert', 'cookies', 'headers', 'hooks', 'params', 'proxies', 'data']:
val = getattr(sess, attr, None)
if val:
if val is not None:
setattr(scraper, attr, val)

return scraper
Expand Down

0 comments on commit d53fd25

Please sign in to comment.