From 04c2f050dfc4f8bf8a6658da61a3635bc45d1c35 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Tue, 15 Aug 2023 12:00:13 -0700 Subject: [PATCH] fix: password check constructor error (#1077) --- scripts/check_passwords.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/check_passwords.py b/scripts/check_passwords.py index b5c3da7c..4ed4978e 100644 --- a/scripts/check_passwords.py +++ b/scripts/check_passwords.py @@ -2,6 +2,7 @@ from collections.abc import Generator import yaml from yaml.scanner import ScannerError +from yaml.constructor import ConstructorError import sys @@ -47,6 +48,9 @@ for file in changed_files: except ScannerError: print(f"Couldn't parse yaml file for: {file}") pass + except ConstructorError: + print(f"Couldn't construct yaml file: {file}") + pass if WE_DUN_GOOFED: exit(1)