cli: refactor

This commit is contained in:
Sina Atalay 2024-06-05 00:58:31 +03:00
parent f3acaed95b
commit 0db0fdf09c
1 changed files with 1 additions and 1 deletions

View File

@ -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