Skip to content

Commit

Permalink
Fix bug #111 Create Session kw prints Arg type
Browse files Browse the repository at this point in the history
Convert the max_retries argument to integer using native python method int(), instead of the Robot convert_to_integer keyword. This avoid that garbage message is printed to Robot logs as: Argument types are: <type 'unicode'>
  • Loading branch information
roimvargas committed May 12, 2016
1 parent 5e42bde commit 37a3b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestsLibrary/RequestsKeywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ 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)
max_retries = int(max_retries)

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

0 comments on commit 37a3b89

Please sign in to comment.