From 589a1599af2932c63d5e0b0183d68bcb8dc39180 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 17 Aug 2021 20:10:49 +0200 Subject: [PATCH] Code d'erreur en cas de test invalide Signed-off-by: Yohann D'ANELLO --- pscheck/pscheck.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pscheck/pscheck.py b/pscheck/pscheck.py index 8392846..e84416d 100644 --- a/pscheck/pscheck.py +++ b/pscheck/pscheck.py @@ -181,4 +181,6 @@ def main(): args = parser.parse_args() 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)