From b5eaf0283065673389ecf997541d217cf7fc7541 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 6 Sep 2020 16:26:49 +0800 Subject: [Update] --- ATRI/modules/b64/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ATRI/modules/b64/__init__.py') diff --git a/ATRI/modules/b64/__init__.py b/ATRI/modules/b64/__init__.py index a8a6bb6..8cce6e0 100644 --- a/ATRI/modules/b64/__init__.py +++ b/ATRI/modules/b64/__init__.py @@ -16,6 +16,7 @@ def b64_str_img_url(url: str): f.write(img_d.content) if find_img.stat().st_size >= 1000000: print('超过1MB,跳过!') + return else: with open(find_img, 'rb') as f: content = f.read() -- cgit v1.2.3