From f73cd501c661ed35be6716afcb6c7ce6a2d6a609 Mon Sep 17 00:00:00 2001 From: dherrada Date: Wed, 2 Mar 2022 18:39:48 -0500 Subject: [PATCH] Linted SPDX.py --- SPDX.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SPDX.py b/SPDX.py index 27b44f285..0dd618809 100644 --- a/SPDX.py +++ b/SPDX.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: MIT import os +import sys print("Starting SPDX Check") @@ -19,7 +20,6 @@ except KeyError: except KeyError: # If we're running on local machine BUILD_DIR = os.path.abspath(".") - pass print(f"Running in {BUILD_DIR}") files = [] @@ -70,5 +70,5 @@ for file in files: if fail: if missing_file: print("Missing files:", missing_file) - exit(-1) -exit(0) + sys.exit(-1) +sys.exit(0)