aboutsummaryrefslogtreecommitdiffstats
path: root/config_file/yaml_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'config_file/yaml_parser.py')
-rw-r--r--config_file/yaml_parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/config_file/yaml_parser.py b/config_file/yaml_parser.py
index fb42e08..938b0d7 100644
--- a/config_file/yaml_parser.py
+++ b/config_file/yaml_parser.py
@@ -6,13 +6,12 @@ except ImportError:
YAML_AVAILABLE = False
from .base_parser import BaseParser
-from .exceptions import MissingDependencyError
class YamlParser(BaseParser):
def __init__(self, file_contents: str):
if not YAML_AVAILABLE:
- raise MissingDependencyError(
+ raise ImportError(
"It doesn't appear `ruamel.yaml` is installed, but a yaml "
"file was attempted to be used. Install the `yaml` "
"extra first with `pip install config-file[yaml]`."