Skip to content

Commit

Permalink
Merge pull request #112 from roimvargas/master
Browse files Browse the repository at this point in the history
Fix bug #111 Create Session kw prints Arg type
  • Loading branch information
bulkan committed May 26, 2016
2 parents 83d628e + 75242bc commit a7a92a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/RequestsLibrary/RequestsKeywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ def _create_session(
s.auth = auth if auth else s.auth
s.proxies = proxies if proxies else s.proxies

max_retries = self.builtin.convert_to_integer(max_retries)
try:
max_retries = int(max_retries)
except ValueError as err:
raise ValueError("Error converting max_retries parameter: %s" % err)

if max_retries > 0:
http = requests.adapters.HTTPAdapter(max_retries=Retry(total=max_retries, backoff_factor=backoff_factor))
Expand Down

0 comments on commit a7a92a8

Please sign in to comment.