Code d'erreur en cas de test invalide

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2021-08-17 20:10:49 +02:00
parent 595262920a
commit 589a1599af
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -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)