From 500fc21f98feaa6fa5a589c7c58f97dcff88b75b Mon Sep 17 00:00:00 2001 From: Chad Baker Date: Fri, 9 Aug 2024 14:58:46 -0600 Subject: [PATCH] same type of fix as previous --- python/fastsim/utils/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/fastsim/utils/utilities.py b/python/fastsim/utils/utilities.py index d399ddcf..4cd45937 100644 --- a/python/fastsim/utils/utilities.py +++ b/python/fastsim/utils/utilities.py @@ -135,7 +135,7 @@ def without_logging(): finally: enable_logging(previous_level) -def set_log_filename(filename: str | Path): +def set_log_filename(filename: Union[str, Path]): handler = logging.FileHandler(filename) handler.setFormatter(logging.root.handlers[0].formatter) logging.getLogger("fastsim").addHandler(handler)