projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Scale back warnings.warn and add stacklevels= where appropriate.
[python_utils.git]
/
decorator_utils.py
diff --git
a/decorator_utils.py
b/decorator_utils.py
index 07ad881f63a613de38d82d9a54babce92127b1b5..752fb919df35dc8ff5f93aba672b9d10bc1efb19 100644
(file)
--- 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()