aboutsummaryrefslogtreecommitdiffstats
path: root/config_file/yaml_parser.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-08-05 21:48:08 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-08-05 21:48:08 -0500
commit19d23dc13636b30f6282e8b3f02b659bcdb2bb11 (patch)
tree52216c50ee455571d3734e936eb0aec93e87305c /config_file/yaml_parser.py
parentAdd docstrings to AbstractParser tests (diff)
downloadconfig-file-19d23dc13636b30f6282e8b3f02b659bcdb2bb11.zip
Remove MissingDependencyError in favor of ImportError
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]`."