Timothy J. Baek 6 tháng trước cách đây
mục cha
commit
2962aa9f06
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backend/open_webui/constants.py

+ 1 - 1
backend/open_webui/constants.py

@@ -21,7 +21,7 @@ class ERROR_MESSAGES(str, Enum):
         return super().__str__()
         return super().__str__()
 
 
     DEFAULT = (
     DEFAULT = (
-        lambda err="": f'{"Something went wrong :/" if err == "" else "[ERROR: " + err + "]"}'
+        lambda err="": f'{"Something went wrong :/" if err == "" else "[ERROR: " + str(err) + "]"}'
     )
     )
     ENV_VAR_NOT_FOUND = "Required environment variable not found. Terminating now."
     ENV_VAR_NOT_FOUND = "Required environment variable not found. Terminating now."
     CREATE_USER_ERROR = "Oops! Something went wrong while creating your account. Please try again later. If the issue persists, contact support for assistance."
     CREATE_USER_ERROR = "Oops! Something went wrong while creating your account. Please try again later. If the issue persists, contact support for assistance."