File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ def raise_for_status(self, response):
115
115
if e .get ("detail" ):
116
116
# It uses interpolation instead of concatenation because of
117
117
# https://github.com/atlassian-api/atlassian-python-api/issues/1481
118
- error_msg = "{}\n {}" .format (error_msg , e ["detail" ])
118
+ error_msg = "{}\n {}" .format (error_msg , str ( e ["detail" ]) )
119
119
except Exception as e :
120
120
log .error (e )
121
121
response .raise_for_status ()
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def _calculate_backoff_value(self, retry_count):
254
254
"""
255
255
backoff_value = self .backoff_factor * (2 ** (retry_count - 1 ))
256
256
if self .backoff_jitter != 0.0 :
257
- backoff_value += random .uniform (0 , self .backoff_jitter ) # nosec B311
257
+ backoff_value += random .uniform (0 , self .backoff_jitter ) # nosec B311
258
258
return float (max (0 , min (self .max_backoff_seconds , backoff_value )))
259
259
260
260
def _retry_handler (self ):
You can’t perform that action at this time.
0 commit comments