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

Exception when parsing empty file #24

Closed
SamK opened this issue Nov 26, 2014 · 0 comments
Closed

Exception when parsing empty file #24

SamK opened this issue Nov 26, 2014 · 0 comments
Assignees
Labels

Comments

@SamK
Copy link
Owner

SamK commented Nov 26, 2014

# python --version
Python 2.7.3
# touch tempfile
# ./check_iftraffic_nrpe.py -f tempfile
Traceback (most recent call last):
  File "./check_iftraffic_nrpe.py", line 627, in <module>
    main(default_values)
  File "./check_iftraffic_nrpe.py", line 497, in main
    uptime0, procnetdev0 = datafile.read()
  File "./check_iftraffic_nrpe.py", line 125, in read
    self.uptime = float(content[0])
IndexError: list index out of range
@SamK SamK added the bug label Nov 26, 2014
@SamK SamK self-assigned this Nov 26, 2014
@SamK SamK closed this as completed in 773f144 Nov 26, 2014
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