File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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):
115115 if e .get ("detail" ):
116116 # It uses interpolation instead of concatenation because of
117117 # 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" ]) )
119119 except Exception as e :
120120 log .error (e )
121121 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):
254254 """
255255 backoff_value = self .backoff_factor * (2 ** (retry_count - 1 ))
256256 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
258258 return float (max (0 , min (self .max_backoff_seconds , backoff_value )))
259259
260260 def _retry_handler (self ):
You can’t perform that action at this time.
0 commit comments