Typecheck log_exceptions.py (#14941)

* Typecheck log_exceptions.py

* typecheck log_exceptions

---------

Co-authored-by: Earle Lowe <e.lowe@chia.net>
This commit is contained in:
Adam Kelly
2023-05-23 14:24:56 -05:00
committed by GitHub
co-authored by Earle Lowe
parent 696eb6c6d6
commit 30cfca9589
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ from __future__ import annotations
import logging
import traceback
from contextlib import contextmanager
from typing import Tuple, Type, Union
from typing import Iterator, Tuple, Type, Union
@contextmanager
@@ -15,7 +15,7 @@ def log_exceptions(
level: int = logging.ERROR,
show_traceback: bool = True,
exceptions_to_process: Union[Type[BaseException], Tuple[Type[BaseException], ...]] = Exception,
):
) -> Iterator[None]:
try:
yield
except exceptions_to_process as e:
-1
View File
@@ -48,7 +48,6 @@ chia.util.hash
chia.util.json_util
chia.util.keychain
chia.util.keyring_wrapper
chia.util.log_exceptions
chia.util.make_test_constants
chia.util.merkle_set
chia.util.partial_func