def raise_retry_exception_first_two_times(url, histogramset_json,
                                           token_generator_callback):
   del url, histogramset_json  # unused
   del token_generator_callback  # unused
   counter[0] += 1
   if counter[0] <= 2:
     raise results_dashboard.SendResultsRetryException('Please retry')
Exemplo n.º 2
0
 def raise_retry_exception(url, histogramset_json,
                           token_generator_callback):
     del url, histogramset_json  # unused
     del token_generator_callback  # unused
     raise results_dashboard.SendResultsRetryException('Should retry')