MCPcopy
hub / github.com/rholder/retrying / should_reject

Method should_reject

retrying.py:186–193  ·  view source on GitHub ↗
(self, attempt)

Source from the content-addressed store, hash-verified

184 return True
185
186 def should_reject(self, attempt):
187 reject = False
188 if attempt.has_exception:
189 reject |= self._retry_on_exception(attempt.value[1])
190 else:
191 reject |= self._retry_on_result(attempt.value)
192
193 return reject
194
195 def call(self, fn, *args, **kwargs):
196 start_time = int(round(time.time() * 1000))

Callers 1

callMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected