Closed zajalo closed 8 years ago
So a quick code read suggests that this is impossible using standard requests. The backoff_factor
attribute is defaulted to 0
and never assigned to None
by any code in requests, as far as I can see.
However, a quick search of RoboBrowser reveals that it sets the backoff_factor
, here, and in the default case will set it to None
. None
is not an allowed value for the backoff factor: this is a bug in RoboBrowser.
I've been getting this error randomly while using RoboBrowser. RoboBrowser installs with requests 2.7.0 but I checked line 166 of current version (2.8) of retry.py and it's the same.
I should add that I made a small modification to a file in RoboBrowser as described here: https://github.com/jmcarp/robobrowser/issues/52#issuecomment-144929550