Skip to content

Commit 9d8a60d

Browse files
Added second location where Path wants to be a string
1 parent d1cc8c9 commit 9d8a60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python_Engine/Python/src/python_toolkit/bhom/analytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def wrapper(*args, **kwargs) -> Any:
8383
exec_metadata["Errors"].extend(sys.exc_info())
8484
raise exc
8585
finally:
86-
log_file = BHOM_LOG_FOLDER / f"{function.__module__.split('.')[0]}_{datetime.now().strftime('%Y%m%d')}.log"
86+
log_file = str(BHOM_LOG_FOLDER / f"{function.__module__.split('.')[0]}_{datetime.now().strftime('%Y%m%d')}.log")
8787

8888
if ANALYTICS_LOGGER.handlers[0].baseFilename != log_file:
8989
ANALYTICS_LOGGER.handlers[0].close()

0 commit comments

Comments
 (0)