diff options
Diffstat (limited to 'ATRI/plugins/code_runner')
-rw-r--r-- | ATRI/plugins/code_runner/data_source.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/code_runner/data_source.py b/ATRI/plugins/code_runner/data_source.py index 87ae792..d5df230 100644 --- a/ATRI/plugins/code_runner/data_source.py +++ b/ATRI/plugins/code_runner/data_source.py @@ -64,7 +64,7 @@ class CodeRunner(Service): try: _ = args[1] - except: + except Exception: return "请检查键入内容...需要帮助:/code help" lang = args[0].replace("\r", "") @@ -90,7 +90,7 @@ class CodeRunner(Service): try: res = await request.post(url, json=js) - except RequestError: + except Exception: raise RequestError("Request failed!") payload = res.json() |