mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
fix stupid bug
This commit is contained in:
parent
48a5ed89e2
commit
d89a9ae106
@ -53,6 +53,7 @@ class Arknights(NewMessage, NoTargetMixin):
|
||||
pic_data = await render.render(announce_url, viewport=viewport, target='div.main')
|
||||
if pic_data:
|
||||
pics.append(pic_data)
|
||||
else:
|
||||
text = '图片渲染失败'
|
||||
elif (pic := soup.find('img', class_='banner-image')):
|
||||
pics.append(pic['src'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user