Skip to content

Commit

Permalink
Fix python 36 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
perseoGI committed May 22, 2024
1 parent 36a4fa6 commit 3f209d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conan/tools/cmake/toolchain/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,8 @@ def get_exact_type(self, key, value):
if not var_type:
raise ConanException(f'CMakeToolchain needs type defined for cache variable "{key}"')
if var_type not in self.CMAKE_CACHE_TYPES:
raise ConanException(f'CMakeToolchain invalid type "{var_type}" for cache variable "{key}". Possible types: {', '.join(self.CMAKE_CACHE_TYPES)}')
possible_types = ', '.join(self.CMAKE_CACHE_TYPES)
raise ConanException(f'CMakeToolchain invalid type "{var_type}" for cache variable "{key}". Possible types: {possible_types}')
docstring = value.get("docstring")
if not docstring:
raise ConanException(f'CMakeToolchain needs docstring defined for cache variable "{key}"')
Expand Down

0 comments on commit 3f209d7

Please sign in to comment.