X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=decorator_utils.py;h=eb5a0c9b9ff581fc3c4398e1e1ab186ec3d00978;hb=7913fe84341dbadfd0fe56834cf2ae55b3535365;hp=07ad881f63a613de38d82d9a54babce92127b1b5;hpb=b454ad295eb3024a238d32bf2aef1ebc3c496b44;p=python_utils.git diff --git a/decorator_utils.py b/decorator_utils.py index 07ad881..eb5a0c9 100644 --- a/decorator_utils.py +++ b/decorator_utils.py @@ -443,7 +443,7 @@ def retry_if_false(tries: int, *, delay_sec=3.0, backoff=2.0): 3 >>> dur > 2.0 True - >>> dur < 2.2 + >>> dur < 2.3 True """ @@ -508,7 +508,6 @@ def thunkify(func): exc[1] = sys.exc_info() # (type, value, traceback) msg = f"Thunkify has thrown an exception (will be raised on thunk()):\n{traceback.format_exc()}" logger.warning(msg) - warnings.warn(msg) finally: wait_event.set()