retrier: raise initial exception instead of OperationalException

This commit is contained in:
gcarq 2018-04-23 16:56:35 +02:00
parent 5baab91bb5
commit 20af4bae7c

View File

@ -41,7 +41,8 @@ def retrier(f):
logger.warning('retrying %s() still for %s times', f.__name__, count)
return wrapper(*args, **kwargs)
else:
raise OperationalException('Giving up retrying: %s()', f.__name__)
logger.warning('Giving up retrying: %s()', f.__name__)
raise ex
return wrapper