Scale back warnings.warn and add stacklevels= where appropriate.
[python_utils.git] / decorator_utils.py
index 07ad881f63a613de38d82d9a54babce92127b1b5..752fb919df35dc8ff5f93aba672b9d10bc1efb19 100644 (file)
@@ -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()