Retrying API calls using requests > 2.12.x produces the following error:
unsupported operand type(s) for -=: 'AggressiveRetry' and 'int'
As a short term solution, we can pin requests in the requirements. Longer term, we will want to determine why this is happening and how to address it.
One possibility is that requests changed their Retry class such that the civis-python class AggressiveRetry isn’t fully compatible with it. However, there are very few differences.
Retrying API calls using
requests > 2.12.x
produces the following error:unsupported operand type(s) for -=: 'AggressiveRetry' and 'int'
As a short term solution, we can pin
requests
in the requirements. Longer term, we will want to determine why this is happening and how to address it.One possibility is that
requests
changed theirRetry
class such that the civis-python class AggressiveRetry isn’t fully compatible with it. However, there are very few differences.