Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE - catch exceptions on nonexisting files #35

Open
alexxa opened this issue Dec 19, 2014 · 0 comments
Open

RFE - catch exceptions on nonexisting files #35

alexxa opened this issue Dec 19, 2014 · 0 comments
Assignees

Comments

@alexxa
Copy link
Member

alexxa commented Dec 19, 2014

dva -c /etc/validation.yaml validate -i ~/git_projects/dva/data.yaml -o ~/validace.yaml -G content --parallel-tests=10

Traceback (most recent call last):
File "/usr/bin/dva", line 5, in dva -c /etc/validation.yaml validate -i ~/git_projects/dva/data.yaml -o ~/validace.yaml -G content --parallel-tests=10
Traceback (most recent call last):
File "/usr/bin/dva", line 5, in
pkg_resources.run_script('dva==0.5', 'dva')
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 492, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1357, in run_script
exec_(script_code, namespace, namespace)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 47, in exec_
exec("""exec code in globs, locs""")
File "", line 1, in
File "/usr/lib/python2.7/site-packages/dva-0.5-py2.7.egg/EGG-INFO/scripts/dva", line 133, in

File "build/bdist.linux-x86_64/egg/aaargh/app.py", line 176, in run
File "/usr/lib/python2.7/site-packages/dva-0.5-py2.7.egg/EGG-INFO/scripts/dva", line 79, in validate

File "build/bdist.linux-x86_64/egg/dva/work/data_parallel_main.py", line 38, in main
File "build/bdist.linux-x86_64/egg/dva/work/data.py", line 177, in load
File "build/bdist.linux-x86_64/egg/dva/work/data.py", line 102, in record_cloud_config
dva.work.data.ConfigError: config /etc/validation.yaml: [Errno 2] No such file or directory: '/etc/validation.yaml'
pkg_resources.run_script('dva==0.5', 'dva')
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 492, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1357, in run_script
exec_(script_code, namespace, namespace)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 47, in exec_
exec("""exec code in globs, locs""")
File "", line 1, in
File "/usr/lib/python2.7/site-packages/dva-0.5-py2.7.egg/EGG-INFO/scripts/dva", line 133, in

File "build/bdist.linux-x86_64/egg/aaargh/app.py", line 176, in run
File "/usr/lib/python2.7/site-packages/dva-0.5-py2.7.egg/EGG-INFO/scripts/dva", line 79, in validate

File "build/bdist.linux-x86_64/egg/dva/work/data_parallel_main.py", line 38, in main
File "build/bdist.linux-x86_64/egg/dva/work/data.py", line 177, in load
File "build/bdist.linux-x86_64/egg/dva/work/data.py", line 102, in record_cloud_config
dva.work.data.ConfigError: config /etc/validation.yaml: [Errno 2] No such file or directory: '/etc/validation.yaml'

I believe it's ok to show only line: No such file or directory: '/etc/validation.yaml'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants