Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
I know
View Details
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Development Lib
>
Common Toolkit
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
33
Star
149
Fork
38
duolabmeng
/
pyefun
Code
Issues
1
Pull Requests
0
Wiki
Insights
Pipelines
Service
Gitee Pages
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
Don’t show this again
Pull Requests
/
Detail
1
#I3UG4P 演示报错信息定制
Merged
吴烜:定制报错信息
duolabmeng:master
吴烜
create on 2021-07-13 05:34
Clone/Download
HTTPS
SSH
Copy
Email Patch
Diff file
此为 #I3UG4P 的粗略效果演示。 在根下建了 test.py: ``` from pyefun import 删除文件 删除文件() ``` 原 python报错输出为: ``` Traceback (most recent call last): File "【略】/pyefun/public.py", line 141, in box return function(*args, **kwargs) TypeError: 删除文件() missing 1 required positional argument: '路径' ``` 修改后运行输出如下: ``` $ python test.py 函数异常 删除文件 时间 2021-07-12 14:27:47.098295 函数“删除文件()”需要“路径”参数 见“【略】/pyefun/public.py”第141行:return function(*args, **kwargs) ``` 调用层级信息和格式等可进一步调整和改进,此提交主要为演示对报错信息内容的定制(摘自 [木兰重现项目源码](https://gitee.com/MulanRevive/mulan-rework/blob/master/%E6%9C%A8%E5%85%B0/%E5%8A%9F%E7%94%A8/%E5%8F%8D%E9%A6%88%E4%BF%A1%E6%81%AF.py))。
This pull request needs to pass some approval items
Type
Assign personnel
Status
Reviewer
Completed
(1/1)
Tester
Completed
(1/1)
How to merge Pull Request
git checkout master
git pull https://gitee.com/zhishi/pyefun.git 定制报错信息
git push origin master
Comments
4
Commits
2
Files
1
Checks
Code problems
0
Expand
Collapse
Reviewer
Reviewer
duolabmeng
duolabmeng666
No Setting
Min number
1
Code Owner
Tester
duolabmeng
duolabmeng666
No Setting
Min number
1
Priority
Not specified
Serious
Main
Secondary
Unimportant
Label
Label settings
No Setting
Link Issue
I3UG4P
关于报错信息中文化
Milestone
No related milestones
Participators
(2)
Cherry Pick
Select the target repository for the Cherry-Pick code
duolabmeng666/pyefun
Select the target repository and branch to submit PR
duolabmeng666/pyefun
master
Submit mode
Fast forward
non-Fast forward
Submit list
Commit SHA
Commit Message
Cherry-pick Commit Message
*
Cancel
Cherry-pick
Python
1
https://gitee.com/duolabmeng666/pyefun.git
git@gitee.com:duolabmeng666/pyefun.git
duolabmeng666
pyefun
pyefun
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register