From 24170eb0343917c320d70e2e7bbc6f75e11885b1 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 19 May 2024 13:54:43 +0300 Subject: [PATCH] cli: refactor --- rendercv/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rendercv/cli.py b/rendercv/cli.py index 9ad16bc..a5efc4e 100644 --- a/rendercv/cli.py +++ b/rendercv/cli.py @@ -238,7 +238,7 @@ def handle_validation_error(exception: pydantic.ValidationError): # Special case for end_date because Pydantic returns multiple end_date errors # since it has multiple valid formats: - if "end_date." in location: + if "end_date" in location: if end_date_error_is_found: continue end_date_error_is_found = True @@ -813,7 +813,6 @@ def cli_command_create_theme( f'The theme "{based_on}" is not in the list of available themes:' f' {", ".join(dm.available_themes)}' ) - return theme_folder = copy_templates( based_on, pathlib.Path.cwd(), new_folder_name=theme_name, suppress_warning=True