From 55a3172e37855f388b9ba0dfc91641a6c9ad1376 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 12 Jan 2022 09:06:29 -0800 Subject: Scale back warnings.warn and add stacklevels= where appropriate. --- decorator_utils.py | 1 - 1 file changed, 1 deletion(-) (limited to 'decorator_utils.py') diff --git a/decorator_utils.py b/decorator_utils.py index 07ad881..752fb91 100644 --- a/decorator_utils.py +++ b/decorator_utils.py @@ -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() -- cgit v1.3