From 1c7fcb1c8f0f009fa23f521f1b0b59743b6e317e Mon Sep 17 00:00:00 2001 From: dylan <58234511@qq.com> Date: Mon, 10 Apr 2023 22:26:45 +0800 Subject: [PATCH] 1 --- jd_comment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jd_comment.py b/jd_comment.py index f32d95b..ca32727 100644 --- a/jd_comment.py +++ b/jd_comment.py @@ -310,6 +310,8 @@ def sunbw(N, opts=None): imgurl = random.choice(imgdata["imgComments"]["imgList"])["imageUrl"] if ('imgdata2' in dir()): imgurl2 = random.choice(imgdata2["imgComments"]["imgList"])["imageUrl"] + else: + imgurl2 = '' except Exception: imgurl = '' imgurl2 = ''