From 8d53aa5582fd840b1b4ab2083e22ad1f68234a2b Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Thu, 21 Nov 2024 19:36:23 +0000 Subject: [PATCH] [fix] Backslash are not allowed in f-string in recent version of Python. --- aidge_export_arm_cortexm/export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aidge_export_arm_cortexm/export.py b/aidge_export_arm_cortexm/export.py index d1f6595..be332bc 100644 --- a/aidge_export_arm_cortexm/export.py +++ b/aidge_export_arm_cortexm/export.py @@ -37,7 +37,8 @@ def supported_boards() -> list[str]: def gen_board_files(path:str, board:str)->None: if board not in supported_boards(): - raise ValueError(f"Board {board} is not supported, supported board are:\n\t-{'\n\t-'.join(supported_boards())}") + joint_board_str = "\n\t-".join(supported_boards()) + raise ValueError(f"Board {board} is not supported, supported board are:\n\t-{joint_board_str}") if isinstance(path, str): path = Path(path) # Create dnn directory is not exist -- GitLab