fix a logger bug

This commit is contained in:
Sina Atalay 2023-10-29 02:00:21 +02:00
parent e69b2fbede
commit e176f1bf36
1 changed files with 1 additions and 0 deletions

View File

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