diff --git a/backend/open_webui/models/functions.py b/backend/open_webui/models/functions.py index 206bb3c700..7530573e79 100644 --- a/backend/open_webui/models/functions.py +++ b/backend/open_webui/models/functions.py @@ -252,9 +252,7 @@ class FunctionsTable: return user_settings["functions"]["valves"].get(id, {}) except Exception as e: - log.exception( - f"Error getting user values by id {id} and user id {user_id}: {e}" - ) + log.exception(f"Error getting user values by id {id} and user id {user_id}") return None def update_user_valves_by_id_and_user_id( diff --git a/backend/open_webui/models/tools.py b/backend/open_webui/models/tools.py index 68a83ea42c..7f1409a900 100644 --- a/backend/open_webui/models/tools.py +++ b/backend/open_webui/models/tools.py @@ -175,7 +175,7 @@ class ToolsTable: tool = db.get(Tool, id) return tool.valves if tool.valves else {} except Exception as e: - log.exception(f"Error getting tool valves by id {id}: {e}") + log.exception(f"Error getting tool valves by id {id}") return None def update_tool_valves_by_id(self, id: str, valves: dict) -> Optional[ToolValves]: