From 0e4a77d6b4e89a620f7e231946fb1c2ce82987b8 Mon Sep 17 00:00:00 2001 From: yzhh <2596322644@qq.com> Date: Mon, 15 Aug 2022 13:32:31 +0800 Subject: [PATCH] Update __init__.py --- modules/mod_dl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mod_dl/__init__.py b/modules/mod_dl/__init__.py index 74abf840..837a68ab 100644 --- a/modules/mod_dl/__init__.py +++ b/modules/mod_dl/__init__.py @@ -28,7 +28,7 @@ source_url = 'https://files.xmdhs.com/curseforge/' @mod_dl.handle(' [] {通过模组名获取模组下载链接,CloudFlare CDN支持。}') async def main(msg: MessageSession): mod_name = msg.parsed_msg[''] - ver = msg.parsed_msg[''] + ver = msg.parsed_msg.get('', False) if ver: match_ver = re.match(r'^\d+\.\d+\.\d+$|^\d+\.\d+$|\d+w\d+[abcd]', ver) if match_ver is None: