remove throw Exception part

This commit is contained in:
retanoj
2020-08-11 15:10:36 +08:00
parent 2aa6cc0f33
commit 11e2de14b4
3 changed files with 7 additions and 8 deletions

View File

@@ -2,6 +2,10 @@ Changelog
=========
Version 1.1.1
- feature remove throw Exception part
Version 1.1.0
- feature remove Package class and subclass

View File

@@ -263,10 +263,6 @@ def main():
action="store",
default="High",
help="威胁等级 [High|Medium|Low]. default: High")
parser.add_argument("--no-except",
action="store_true",
default=False,
help="发现漏洞不抛出异常")
parser.add_argument("--debug",
action="store_true",
default=False)
@@ -275,6 +271,5 @@ def main():
if args.debug:
log.set_log_level(logging.DEBUG)
status = run(args)
if status == 1 and not args.no_except:
raise BaseException("Found Vulnerable!")
return run(args)

View File

@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name="mosec-pip-plugin",
version="1.1.0",
version="1.1.1",
author="retanoj",
author_email="mmsrc@immomo.com",
description="用于检测python项目的第三方依赖组件是否存在安全漏洞",