We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f722ad4 commit 573fb8aCopy full SHA for 573fb8a
1 file changed
src/com/dvsnier/config/cfg/configuration.py
@@ -17,7 +17,7 @@ def __init__(self):
17
def obtain_config(self, config_file):
18
"""the read xxx.cfg"""
19
if not config_file or not os.path.exists(config_file):
20
- raise FileNotFoundError('the current config path is not found.')
+ raise IOError('the current config path is not found.')
21
logging.info('the start parsing the configuration file that is {}'.format(os.path.abspath(config_file)))
22
with open(config_file) as file_handler:
23
lines = file_handler.readlines()
0 commit comments