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

Crash when file not found #29

Open
juliu-s opened this issue Dec 1, 2016 · 1 comment
Open

Crash when file not found #29

juliu-s opened this issue Dec 1, 2016 · 1 comment

Comments

@juliu-s
Copy link

juliu-s commented Dec 1, 2016

When specifying a file that does not exists, the applications crashes:

[me@server]$ dnszonetest -d my.dns.server.pizza -rtns zone.pizza zone.pizza INFO NAME SERVER: my.dns.server.pizza INFO NAME SERVER IP: 123.45.678.90 Traceback (most recent call last): File "/usr/bin/dnszonetest", line 9, in <module> load_entry_point('dnszonetest==1.0.5', 'console_scripts', 'dnszonetest')() File "/usr/lib/python2.6/site-packages/dnszonetest/cli.py", line 157, in main dnszonetest.compare() File "/usr/lib/python2.6/site-packages/dnszonetest/main.py", line 190, in compare self.get_zone_from_file() File "/usr/lib/python2.6/site-packages/dnszonetest/main.py", line 145, in get_zone_from_file 'Unable to read zone file: {0}'.format(err) dnszonetest.exceptions.NoZoneFileException: Unable to read zone file: [Errno 2] No such file or directory: 'zone.pizza '

Can you make a nice error message for this issue?

@maartenq
Copy link
Owner

maartenq commented Dec 1, 2016

Of course. So you can you! :-)
Where is your pull request?

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