Code d'erreur en cas de test invalide
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
595262920a
commit
589a1599af
@ -181,4 +181,6 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
qrcode = read_qrcode(args.file)
|
qrcode = read_qrcode(args.file)
|
||||||
analyse_qrcode(qrcode, args.full, not args.dontcheck)
|
valid = analyse_qrcode(qrcode, args.full, not args.dontcheck)
|
||||||
|
|
||||||
|
exit(0 if valid else 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user