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

Arguments parsing exception #3

Open
mohierf opened this issue May 15, 2017 · 0 comments
Open

Arguments parsing exception #3

mohierf opened this issue May 15, 2017 · 0 comments
Labels

Comments

@mohierf
Copy link
Contributor

mohierf commented May 15, 2017

With some bad arguments, an exception is raised but not catched:

==> /usr/local/var/log/alignak/pollerd.log <==
[2017-05-15 07:54:53 CEST] ERROR: [alignak.module.nrpe-booster] Got an unhandled exception: invalid literal for int() with base 10: '-u'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/alignak_module_nrpe_booster-0.3.1-py2.7.egg/alignak_module_nrpe_booster/nrpe_booster.py", line 665, in work
    self.do_work(s, returns_queue, c)
  File "/usr/local/lib/python2.7/dist-packages/alignak_module_nrpe_booster-0.3.1-py2.7.egg/alignak_module_nrpe_booster/nrpe_booster.py", line 700, in do_work
    self.launch_new_checks()
  File "/usr/local/lib/python2.7/dist-packages/alignak_module_nrpe_booster-0.3.1-py2.7.egg/alignak_module_nrpe_booster/nrpe_booster.py", line 579, in launch_new_checks
    args = parse_args(clean_command[1:])
  File "/usr/local/lib/python2.7/dist-packages/alignak_module_nrpe_booster-0.3.1-py2.7.egg/alignak_module_nrpe_booster/nrpe_booster.py", line 469, in parse_args
    timeout = int(a)
ValueError: invalid literal for int() with base 10: '-u'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant