diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-07 09:52:11 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-07 09:52:11 -0500 |
| commit | 08d7c88cae495ac8904be2367eb0d223e16ac8e8 (patch) | |
| tree | 9eeccbf15bf38728acb963266b3be8c887a786a0 | |
| parent | Add ConfigFilePath test (diff) | |
| download | config-file-08d7c88cae495ac8904be2367eb0d223e16ac8e8.zip | |
Fix invalid reference to MissingKeyError
| -rw-r--r-- | config_file/config_file.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config_file/config_file.py b/config_file/config_file.py index d66cc48..2ce61ef 100644 --- a/config_file/config_file.py +++ b/config_file/config_file.py @@ -69,6 +69,7 @@ class ConfigFile: The value of the key. Raises: + KeyError: If a key is attempted to be retrieved that does not exist. ValueError: If the value is not able to be coerced into return_type. """ try: @@ -110,7 +111,7 @@ class ConfigFile: key: The section, sub-section, or key to delete. Raises: - MissingKeyError: If a key is attempted to be deleted that + KeyError: If a key is attempted to be deleted that does not exist. """ self.__parser.delete(key) |