mirror of https://github.com/eyhc1/rendercv.git
fix a logger bug
This commit is contained in:
parent
e69b2fbede
commit
e176f1bf36
|
@ -125,6 +125,7 @@ def user_friendly_errors(func: Callable) -> Callable:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# It is not a Pydantic error
|
# It is not a Pydantic error
|
||||||
new_args = list(e.args)
|
new_args = list(e.args)
|
||||||
|
new_args = [str(arg).strip() for arg in new_args]
|
||||||
error_message = "\n\n ".join(new_args)
|
error_message = "\n\n ".join(new_args)
|
||||||
logger.error(error_message)
|
logger.error(error_message)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue