screencfg: Use yaml.safe_load()

This commit is contained in:
Hannes Körber
2021-01-27 15:50:57 +01:00
parent c22d769ab5
commit 818ac7ef8c

View File

@@ -31,7 +31,7 @@ args = parser.parse_args()
config_path = args.config config_path = args.config
try: try:
config = yaml.load(open(config_path)) config = yaml.safe_load(open(config_path))
except FileNotFoundError: except FileNotFoundError:
fail("File {0} not found".format(config_path)) fail("File {0} not found".format(config_path))