screencfg: Use yaml.safe_load()
This commit is contained in:
@@ -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))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user