From 8d0c5f4120c7f725ac90e7c0d07a0c3476aee4af Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 10 Feb 2024 21:30:39 +0100 Subject: [PATCH] enhance user_communicator.py --- rendercv/user_communicator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rendercv/user_communicator.py b/rendercv/user_communicator.py index 4c4d8ae..4771a90 100644 --- a/rendercv/user_communicator.py +++ b/rendercv/user_communicator.py @@ -96,7 +96,8 @@ def handle_validation_error(exception: pydantic.ValidationError): message = message else: message = custom_error[0] - location = f"{location}.{custom_error[1]}" + if custom_error[1] != "": + location = f"{location}.{custom_error[1]}" input = custom_error[2] new_errors.append({ @@ -122,6 +123,7 @@ def handle_validation_error(exception: pydantic.ValidationError): ) print(table) + print() def handle_exceptions(function: Callable) -> Callable: