XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

fix: update get_media_extension to return empty string for unsupported extensions

ce42a892
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/image/copy_images.py +1 -1
@@ -38,7 +38,7 @@ def get_media_extension(media: str) -> str:
38 38 if not extension or len(extension) > 4:
39 39 return ""
40 40 if extension[1:] not in EXTENSIONS_MAP:
41 raise ""
41 return ""
42 42 return extension
43 43
44 44 def ensure_media_dir():