mirror of https://github.com/eyhc1/rendercv.git
data_models: fix `get_a_sample_data_model` for Python 3.10 and 3.11
This commit is contained in:
parent
28ae2aea2c
commit
9e8cc5e4c2
|
@ -1189,9 +1189,10 @@ def get_a_sample_data_model(
|
|||
"""
|
||||
# check if the theme is valid:
|
||||
if theme not in available_themes:
|
||||
available_themes_string = ", ".join(available_themes)
|
||||
raise ValueError(
|
||||
f"The theme should be one of the following: {", ".join(available_themes)}!"
|
||||
f" The provided theme is \"{theme}\"."
|
||||
f"The theme should be one of the following: {available_themes_string}!"
|
||||
f' The provided theme is "{theme}".'
|
||||
)
|
||||
|
||||
name = name.encode().decode("unicode-escape")
|
||||
|
|
Loading…
Reference in New Issue