Skip to content

Commit 3f209d7

Browse files
committed
Fix python 36 issue
1 parent 36a4fa6 commit 3f209d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conan/tools/cmake/toolchain/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,8 @@ def get_exact_type(self, key, value):
10271027
if not var_type:
10281028
raise ConanException(f'CMakeToolchain needs type defined for cache variable "{key}"')
10291029
if var_type not in self.CMAKE_CACHE_TYPES:
1030-
raise ConanException(f'CMakeToolchain invalid type "{var_type}" for cache variable "{key}". Possible types: {', '.join(self.CMAKE_CACHE_TYPES)}')
1030+
possible_types = ', '.join(self.CMAKE_CACHE_TYPES)
1031+
raise ConanException(f'CMakeToolchain invalid type "{var_type}" for cache variable "{key}". Possible types: {possible_types}')
10311032
docstring = value.get("docstring")
10321033
if not docstring:
10331034
raise ConanException(f'CMakeToolchain needs docstring defined for cache variable "{key}"')

0 commit comments

Comments
 (0)