Skip to content
Myr

remove unnecessary try

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by daftshady · committed by daftshady · parent 8b2255d · Browse files · 1 file+2 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:requests/cookies.py+2 added-5 removed
435 unmodified lines
436 cookiejar = cookiejar_from_dict(437 cookies, cookiejar=cookiejar, overwrite=False)438 elif isinstance(cookies, cookielib.CookieJar):439 try:440 try:441 cookiejar.update(cookies)442 except AttributeError:440 cookiejar.update(cookies)441 except AttributeError:443 raise CookieJarError444 except CookieJarError:442 for cookie_in_jar in cookies:443 cookiejar.set_cookie(cookie_in_jar)444445 return cookiejar