Skip to content

Commit cb0245f

Browse files
fix: add error details in case of improper join_cli_args usage
1 parent 1654a41 commit cb0245f

File tree

1 file changed

+6
-1
lines changed
  • snakemake_interface_executor_plugins

1 file changed

+6
-1
lines changed

snakemake_interface_executor_plugins/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ def format_cli_value(value: Any) -> str:
5959

6060

6161
def join_cli_args(args):
62-
return " ".join(arg for arg in args if arg)
62+
try:
63+
return " ".join(arg for arg in args if arg)
64+
except TypeError:
65+
raise TypeError(
66+
f"bug: join_cli_args expects iterable of strings. Given: {args}"
67+
)
6368

6469

6570
def url_can_parse(url: str) -> bool:

0 commit comments

Comments
 (0)