From 785a81cd5e9300c184b2e1df8c0d5676887a1e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 11 Oct 2023 10:01:59 +0200 Subject: [PATCH] Remmove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- scripts/check-json-schemas.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/check-json-schemas.py b/scripts/check-json-schemas.py index 23158a43..a202f54d 100755 --- a/scripts/check-json-schemas.py +++ b/scripts/check-json-schemas.py @@ -139,7 +139,6 @@ def check_schema_dir(schemadir): "files": 0, "errors": 0, } - errors = [] for root, dirs, files in os.walk(schemadir): for schemadir in dirs: dir_report = check_schema_dir(os.path.join(root, schemadir)) @@ -157,7 +156,6 @@ def check_schema_dir(schemadir): check_schema_file(os.path.join(root, filename)) except Exception as e: report["errors"] += 1 - errors.append(sys.exc_info()) return report # The directory that this script is residing in.