From 830103b9d53d87150c950ea0df0560fdf604994d Mon Sep 17 00:00:00 2001 From: yajiwa <839790708@qq.com> Date: Mon, 13 Jun 2022 10:59:29 +0800 Subject: [PATCH] update change_img_md5 --- utils/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/utils.py b/utils/utils.py index 1a7a041e..8c280933 100755 --- a/utils/utils.py +++ b/utils/utils.py @@ -400,7 +400,7 @@ def change_pixiv_image_links( return url -def change_img_md5(path_file) -> bool: +def change_img_md5(path_file: str) -> bool: """ 说明: 改变图片MD5 @@ -410,7 +410,6 @@ def change_img_md5(path_file) -> bool: try: with open(path_file, "a") as f: f.write(str(int(time.time() * 1000))) - f.close() return True except: return False \ No newline at end of file