Skip to content

Commit 440a773

Browse files
committed
fix
1 parent 0797bcb commit 440a773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/chain/media.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
current_umask = os.umask(0)
2626
os.umask(current_umask)
2727

28+
2829
class MediaChain(ChainBase):
2930
"""
3031
媒体信息处理链,单例运行
@@ -470,7 +471,7 @@ def __save_file(_fileitem: schemas.FileItem, _path: Path, _content: Union[bytes,
470471
tmp_file.write(_content.encode('utf-8'))
471472
tmp_file.flush()
472473
tmp_file.close() # 关闭文件句柄
473-
474+
474475
# 刮削文件只需要读写权限
475476
tmp_file_path.chmod(0o666 & ~current_umask)
476477

0 commit comments

Comments
 (0)