🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -762,7 +762,7 @@ class EmojiManager:
|
||||
await new_emoji.initialize_hash_format()
|
||||
emoji_base64 = image_path_to_base64(os.path.join(EMOJI_DIR, filename))
|
||||
description, emotions = await self.build_emoji_description(emoji_base64)
|
||||
if description == "" or description == None :
|
||||
if description == "" or description == None:
|
||||
return False
|
||||
new_emoji.description = description
|
||||
new_emoji.emotion = emotions
|
||||
@@ -851,6 +851,5 @@ class EmojiManager:
|
||||
logger.error(f"[错误] 删除文件时出错: {str(e)}")
|
||||
|
||||
|
||||
|
||||
# 创建全局单例
|
||||
emoji_manager = EmojiManager()
|
||||
|
||||
Reference in New Issue
Block a user