summaryrefslogtreecommitdiffstats
path: root/rtemsspec/items.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsspec/items.py')
-rw-r--r--rtemsspec/items.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtemsspec/items.py b/rtemsspec/items.py
index 12ecfb42..2bbf0848 100644
--- a/rtemsspec/items.py
+++ b/rtemsspec/items.py
@@ -495,8 +495,8 @@ def _load_item(path: str, uid: str) -> Any:
with open(path, "r") as src:
try:
data = yaml.safe_load(src.read())
- except yaml.parser.ParserError as err:
- msg = ("YAML parser error while loading specification item file "
+ except yaml.YAMLError as err:
+ msg = ("YAML error while loading specification item file "
f"'{path}': {str(err)}")
raise IOError(msg) from err
data["_file"] = os.path.abspath(path)