exception control
1.0.0
对Python文件中未接收的例外进行有限的静态分析。
这是一个
要检查python文件中的未被发现的例外:
python3 main.py [filename]
多个文件支持是有限的,但是您可以尝试以下操作:
python3 main.py <(cat [file1] [file2]...)
已为包括的测试文件测试/test.py和tests/test2.py验证了以下行为:
raise Exception )。open() 。arr[index]和除a / b或a // b之类的操作员提出的异常。except Exception:报告中的从句,并了解例外层次结构。TypeError ,则只会报告最后一个。python3 main.py <(cat [file1] [file2]...)from <module> import <function> as <new_name>重命名的函数。