fix: password check constructor error (#1077)
This commit is contained in:
parent
2e73148bea
commit
04c2f050df
@ -2,6 +2,7 @@
|
|||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
import yaml
|
import yaml
|
||||||
from yaml.scanner import ScannerError
|
from yaml.scanner import ScannerError
|
||||||
|
from yaml.constructor import ConstructorError
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
@ -47,6 +48,9 @@ for file in changed_files:
|
|||||||
except ScannerError:
|
except ScannerError:
|
||||||
print(f"Couldn't parse yaml file for: {file}")
|
print(f"Couldn't parse yaml file for: {file}")
|
||||||
pass
|
pass
|
||||||
|
except ConstructorError:
|
||||||
|
print(f"Couldn't construct yaml file: {file}")
|
||||||
|
pass
|
||||||
|
|
||||||
if WE_DUN_GOOFED:
|
if WE_DUN_GOOFED:
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user