mirror of
https://github.com/rendercv/rendercv.git
synced 2026-05-24 16:48:55 -04:00
fix a logger bug
This commit is contained in:
@@ -125,6 +125,7 @@ def user_friendly_errors(func: Callable) -> Callable:
|
||||
except Exception as e:
|
||||
# It is not a Pydantic error
|
||||
new_args = list(e.args)
|
||||
new_args = [str(arg).strip() for arg in new_args]
|
||||
error_message = "\n\n ".join(new_args)
|
||||
logger.error(error_message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user