only wanr and err can abort

This commit is contained in:
Marc BARBIER
2021-06-29 11:51:23 +02:00
parent 1f8ba887fc
commit 71425ec381
+4 -1
View File
@@ -26,6 +26,9 @@ for file in files:
code = termColor.WARN
print(code + check[0] + " detected in:")
print(file.split("\n")[0].split(" b/")[0])
triggred=1
if check[1] == 1 or check[1] == 0:
triggred=1
if triggred == 1:
print(termColor.ERR + "Aborting...")
sys.exit(triggred)