zstdlib 0.10.0__tar.gz → 0.10.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zstdlib-0.10.0 → zstdlib-0.10.1}/PKG-INFO +1 -1
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_exc_capture.py +4 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/__init__.py +1 -1
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/exc_capture.py +4 -2
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/PKG-INFO +1 -1
- {zstdlib-0.10.0 → zstdlib-0.10.1}/LICENSE +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/README.md +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/pyproject.toml +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/setup.cfg +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/__init__.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/log/__init__.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/log/base.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/log/test_cute.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/log/test_trace.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_ansi.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_enum.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_frozen.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_io.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_lazy.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_not_set.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/tests/test_singleton.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/ansi.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/enum.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/frozen.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/io.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/lazy.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/log/__init__.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/log/cute.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/log/trace.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/macos.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/not_set.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/py.typed +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/signal_cm.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib/singleton.py +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/SOURCES.txt +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/dependency_links.txt +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/requires.txt +0 -0
- {zstdlib-0.10.0 → zstdlib-0.10.1}/zstdlib.egg-info/top_level.txt +0 -0
|
@@ -52,11 +52,13 @@ class ExcDelay(ExcCapture):
|
|
|
52
52
|
) -> None:
|
|
53
53
|
"""
|
|
54
54
|
Args:
|
|
55
|
-
exc_t: The exception type the capture function should capture, if None it must be passed to the capture function directly
|
|
56
55
|
msg: The exception group message
|
|
56
|
+
exc_t: The exception type the capture function should capture, if None it must be passed to the capture function directly
|
|
57
57
|
"""
|
|
58
|
+
if not isinstance(msg, str):
|
|
59
|
+
raise TypeError(f"Invalid message type: {type(msg)}")
|
|
60
|
+
self._msg: str = msg
|
|
58
61
|
super().__init__(exc_t)
|
|
59
|
-
self._msg = msg
|
|
60
62
|
|
|
61
63
|
def __enter__(self) -> CaptureFType:
|
|
62
64
|
"""Return the capture function to use"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|