Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db6358 commit cbacd02Copy full SHA for cbacd02
1 file changed
env_parser/main.py
@@ -18,7 +18,7 @@ def config(config_path: str):
18
raise EnvNotFoundError(msg)
19
elif envs.get(data.name):
20
if data.options and envs.get(data.name) not in data.options:
21
- msg = f'{data.name} should be on of the following: {', '.join(data.options)}'
+ msg = f'{data.name} is not listed inside value options.'
22
raise InvalidEnvValue(msg)
23
try:
24
converted = class_type[data.value_type](envs[data.name])
@@ -33,4 +33,4 @@ def config(config_path: str):
33
34
if __name__ == '__main__':
35
envs = config('./test.yml')
36
- print(envs)
+ print(envs)
0 commit comments