diff --git a/snakebids/io/yaml.py b/snakebids/io/yaml.py index 1af98d3a..9fc43748 100644 --- a/snakebids/io/yaml.py +++ b/snakebids/io/yaml.py @@ -2,7 +2,10 @@ from pathlib import Path, PosixPath, WindowsPath from typing import Any, OrderedDict -from ruamel.yaml import YAML, Dumper +try: + from ruamel.yaml import YAML, Dumper +except ImportError: + from ruamel_yaml import YAML, Dumper def get_yaml_io():