diff --git a/aidge_export_arm_cortexm/export.py b/aidge_export_arm_cortexm/export.py index d1f6595e89eb327ddb67b39a21d708c9078ea3ab..be332bc6043fe853e723382f1df0516934c82bda 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