summaryrefslogtreecommitdiff
path: root/ATRI/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins')
-rw-r--r--ATRI/plugins/nsfw.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/nsfw.py b/ATRI/plugins/nsfw.py
index 10e74fb..0d071cb 100644
--- a/ATRI/plugins/nsfw.py
+++ b/ATRI/plugins/nsfw.py
@@ -29,8 +29,8 @@ async def _nsfw_checking(bot: Bot, event: GroupMessageEvent) -> None:
group = event.group_id
check = await coolq_code_check(msg, user, group)
if check:
- url = nsfw_url + re.findall(r"url=(.*?)]", msg)[0]
try:
+ url = nsfw_url + re.findall(r"url=(.*?)]", msg)[0]
data = json.loads(await get_bytes(url))
except:
log.warning('检测涩图失败,请查阅文档以获取帮助')
@@ -100,4 +100,4 @@ async def _nsfw_reading(bot: Bot,
level = "?能不能换张55完全冲不起来"
repo = f"涩值:{result}\n{level}"
- await nsfw_reading.finish(repo) \ No newline at end of file
+ await nsfw_reading.finish(repo)