From 0db0fdf09ccf841ceaa502bd6e65bd85e7fd5c90 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Wed, 5 Jun 2024 00:58:31 +0300 Subject: [PATCH] cli: refactor --- rendercv/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rendercv/cli.py b/rendercv/cli.py index 219d664..abb0abb 100644 --- a/rendercv/cli.py +++ b/rendercv/cli.py @@ -282,7 +282,7 @@ def handle_validation_error(exception: pydantic.ValidationError): ) if custom_message is not None: message = custom_message - if custom_location != "": + if custom_location: # If the custom location is not empty, then add it to the location. location = f"{location}.{custom_location}" input = custom_input_value