Commit 1b51e33b authored by Rémi Duraffort's avatar Rémi Duraffort

Fix crash introduced in a615696c

Signed-off-by: Rémi Duraffort's avatarRémi Duraffort <remi.duraffort@linaro.org>
parent a28b90f9
Pipeline #4393 passed with stages
in 17 minutes and 40 seconds
......@@ -33,7 +33,7 @@ from lava_common.schemas.device import validate as validate_device
def check_device(data, options, prefix=""):
try:
data = yaml.safe_load(data)
except yaml.yamlerror as exc:
except yaml.YAMLError as exc:
print("%sinvalid device definition:" % prefix)
print("%sinvalid yaml" % prefix)
return 1
......@@ -50,7 +50,7 @@ def check_device(data, options, prefix=""):
def check_job(data, options, prefix=""):
try:
data = yaml.safe_load(data)
except yaml.yamlerror as exc:
except yaml.YAMLError as exc:
print("%sinvalid job definition:" % prefix)
print("%sinvalid yaml" % prefix)
return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment